def __new__(cls): """Special static method that's automatically called by Python when constructing a new instance of this class. Returns a fully instantiated BaseUlauncherWindow object. """ builder = Builder.new_from_file('UlauncherWindow') new_object = builder.get_object("ulauncher_window") new_object.finish_initializing(builder) return new_object
def __new__(cls): """Special static method that's automatically called by Python when constructing a new instance of this class. Returns a fully instantiated PreferencesDialog object. """ builder = Builder.new_from_file('PreferencesUlauncherDialog') new_object = builder.get_object("preferences_ulauncher_dialog") new_object.finish_initializing(builder) return new_object