Changeset 20818 in vbox
- Timestamp:
- Jun 23, 2009 12:06:23 PM (15 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
-
Frontends/VBoxShell/vboxshell.py (modified) (2 diffs)
-
Main/glue/vboxapi.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r20694 r20818 196 196 print "onGuestPropertyChange: %s" %(id) 197 197 198 199 198 200 199 g_hasreadline = 1 … … 373 372 ctx['global'].waitForEvents(500) 374 373 # We need to catch all exceptions here, otherwise callback will never be unregistered 375 except Exception,e: 376 print e 374 except: 377 375 if g_verbose: 378 376 traceback.print_exc() 379 pass380 377 vbox.unregisterCallback(cb) 381 378 -
trunk/src/VBox/Main/glue/vboxapi.py
r20807 r20818 165 165 #str += " _reg_desc_ = 'Generated callback implementation class'\n" 166 166 #str += " _reg_policy_spec_ = 'win32com.server.policy.EventHandlerPolicy'\n" 167 168 # generate capitalized version of callbacks - that's how Python COM 169 # looks them up on Windows 170 for m in dir(impl): 171 if m.startswith("on"): 172 str += " "+m[0].capitalize()+m[1:]+"=BaseClass."+m+"\n" 167 173 168 174 str += " def __init__(self): BaseClass.__init__(self, arg)\n"
Note:
See TracChangeset
for help on using the changeset viewer.

