def show_preferences(self): """Open the Preferences Dialog.""" pref = preferences.Preferences(self) main_container = IDE.get_service("main_container") if main_container: main_container.show_dialog(pref) else: pref.show()
def show_preferences(self): """Open the Preferences Dialog.""" pref = preferences.Preferences(self) pref.setModal(True) # main_container = IDE.get_service("main_container") # if main_container: # main_container.show_dialog(pref) # else: pref.show()
def show_preferences(self): """Open the Preferences Dialog.""" pref = preferences.Preferences(self) main_container = IDE.get_service("main_container") print("\n\npreferences!!") if main_container: main_container.show_dialog(pref) print("\n\nmain_container---") else: pref.show() print("\n\nNONE---")
def show_preferences(self): """Open the Preferences Dialog.""" pref = preferences.Preferences(self) pref.show()