示例#1
0
 def chooseDialogType(self,type):
     """
     supported types today: console,win32,wizardserver
     @param type DialogType enumerator
     """
     self.type=type
     self.easyDialog=EasyDialogConsole()
     if self.type==DialogType.WIZARDSERVER:
         from EasyDialogWizardServer import EasyDialogWizardServer
         self.easyDialog=EasyDialogWizardServer()
     if self.type==DialogType.WIN32 and pylabs.q.platform.isWindows():
         try:
             import EasyDialogs
             easyDialogsInstalled = True
         except ImportError:
             easyDialogsInstalled = False  # EasyDialog is not installed, fall back to Console.
         if easyDialogsInstalled:
             from EasyDialogWin32 import EasyDialogWin32
             self.easyDialog=EasyDialogWin32()
示例#2
0
 def __init__(self):
     self.easyDialog = EasyDialogConsole()