Esempio n. 1
0
 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()
Esempio n. 2
0
 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()
Esempio n. 3
0
 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---")
Esempio n. 4
0
 def show_preferences(self):
     """Open the Preferences Dialog."""
     pref = preferences.Preferences(self)
     pref.show()