Пример #1
0
 def __new__(cls, interface=None, execute_callback=None):
     """Special static method that's automatically called by Python when 
     constructing a new instance of this class.
     """
     builder = get_builder('ApplicationSelectorWindow')
     new_object = builder.get_object('applicationselector_window')
     new_object.finish_initializing(builder, interface, execute_callback)
     return new_object
Пример #2
0
 def __new__(cls):
     """Special static method that's automatically called by Python when 
     constructing a new instance of this class.
     
     Returns a fully instantiated EditlauncherDialog object.
     """
     builder = get_builder('NewDeviceEntry')
     new_object = builder.get_object('newdeviceentry')
     new_object.finish_initializing(builder)
     return new_object
Пример #3
0
 def __new__(cls, option):
     """Special static method that's automatically called by Python when 
     constructing a new instance of this class.
     
     Returns a fully instantiated FilechooserDialog object.
     """
     builder = get_builder('FilechooserDialog')
     new_object = builder.get_object('filechooser_dialog')
     new_object.finish_initializing(builder, option)
     return new_object
Пример #4
0
 def __new__(cls, device=None, execute_callback=None):
     """Special static method that's automatically called by Python when 
     constructing a new instance of this class.
     
     Returns a fully instantiated ActionSelectorSimple object.
     """
     builder = get_builder('ActionSelectorSimple')
     new_object = builder.get_object('actionselector_simple')
     new_object.finish_initializing(builder, device, execute_callback)
     return new_object
Пример #5
0
 def __new__(cls):
     """Special static method that's automatically called by Python when 
     constructing a new instance of this class.
     
     Returns a fully instantiated EditlauncherDialog object.
     """
     builder = get_builder('ActionSelectorWindow')
     new_object = builder.get_object('actionselector_window')
     new_object.finish_initializing(builder)
     return new_object