def __init__(self): # On init we must check dependencies: if it raises no error, it's used. import wx self.app = pydev_guisupport.get_app_wx(redirect=False) # Check post-conditions assert hasattr(self.app, 'ProcessPendingEvents') assert hasattr(wx, 'CallAfter')
def __init__(self): # On init we must check dependencies: if it raises no error, it's used. import wx self.app = pydev_guisupport.get_app_wx(redirect=False) # Check post-conditions assert hasattr(self.app, "ProcessPendingEvents") assert hasattr(wx, "CallAfter")
def __init__(self): #On init we must check dependencies: if it raises no error, it's used. import wx #If I pass redirect = False, the console does not work (and I don't know why). self.app = pydev_guisupport.get_app_wx(redirect=True)