示例#1
0
文件: dialogs.py 项目: hashar/WAPT
 def __init__ (self, title, fields, progress_callback=core.UNSET, parent_hwnd=0):
   ur"""Initialise the dialog with a title and a list of fields of
   the form [(label, default), ...].
   """
   BaseDialog.__init__ (self, title, parent_hwnd)
   self.progress_callback = progress_callback
   self.fields = list (fields)
   if not self.fields:
     raise RuntimeError ("Must pass at least one field")
   self.results = []
   self.progress_thread = core.UNSET
   self.progress_cancelled = ipc.event ()
示例#2
0
 def __init__(self,
              title,
              fields,
              progress_callback=core.UNSET,
              parent_hwnd=0):
     ur"""Initialise the dialog with a title and a list of fields of
 the form [(label, default), ...].
 """
     BaseDialog.__init__(self, title, parent_hwnd)
     self.progress_callback = progress_callback
     self.fields = list(fields)
     if not self.fields:
         raise RuntimeError("Must pass at least one field")
     self.results = []
     self.progress_thread = core.UNSET
     self.progress_cancelled = ipc.event()
示例#3
0
 def __init__(self):
     core._WinSysObject.__init__(self)
     self.event = ipc.event(needs_manual_reset=True)
     self.overlapped = wrapped(win32file.OVERLAPPED)
     self.overlapped.hEvent = self.event.pyobject()