# Import locale and gettext modules for defining translation texts which will be recognized by gettext application (will be run by programmer externally) and exported into a ".pot" file.
# Import locale and gettext modules for defining translation texts which will be recognized by gettext application (will be run by programmer externally) and exported into a ".pot" file.
# ********************** Define object functions for Environment Variables tab right click menu **********************
defon_menuitem7101m_activate(widget):# "Add Environment Variable" item on the right click menu
if'EnvironmentVariablesInputGUI'notinglobals():# Check if "EnvironmentVariablesInputGUI" module is imported. Therefore it is not reimported for every click on "Add Environment Variable" menu item if "EnvironmentVariablesInputGUI" name is in globals().
selected_variable_value='='.join(EnvironmentVariablesGUI.selected_variable_value.split("=")[1:])# There may be more than "=" in the VARIABLE=VALUE string. String later than first "=" is get as value.
if'EnvironmentVariablesInputGUI'notinglobals():# Check if "EnvironmentVariablesInputGUI" module is imported. Therefore it is not reimported for every click on "Edit Environment Variable" menu item if "EnvironmentVariablesInputGUI" name is in globals().
if'ProcessesDetailsGUI'notinglobals():# Check if "ProcessesDetailsGUI" module is imported. Therefore it is not reimported for every double click on any process on the treeview if "ProcessesDetailsGUI" name is in globals(). It is not recognized after tab switch if it is not imported as global.
if'ProcessesDetailsGUI'notinglobals():# Check if "ProcessesDetailsGUI" module is imported. Therefore it is not reimported for every double click on any process on the treeview if "ProcessesDetailsGUI" name is in globals().
defon_menuitem2108m_activate(widget):# "Details" item on the right click menu
if'ProcessesDetailsGUI'notinglobals():# Check if "ProcessesDetailsGUI" module is imported. Therefore it is not reimported for every click on "Details" menu item on the right click menu if "ProcessesDetailsGUI" name is in globals(). It is not recognized after tab switch if it is not imported as global.
if'ProcessesDetailsGUI'notinglobals():# Check if "ProcessesDetailsGUI" module is imported. Therefore it is not reimported for every click on "Details" menu item on the right click menu if "ProcessesDetailsGUI" name is in globals().
# ----------------------------------- Services - Services Details Window GUI Function (the code of this module in order to avoid running them during module import and defines "Services Details" window GUI objects and functions/signals) -----------------------------------
# Import locale and gettext modules for defining translation texts which will be recognized by gettext application (will be run by programmer externally) and exported into a ".pot" file.
selected_service_name=Services.service_list[Services.services_data_rows.index(model[treeiter][:])]# "[:]" is used in order to copy entire list to be able to use it for getting index in the "services_data_rows" list to use it getting name of the service.
if'ServicesDetailsGUI'notinglobals():# Check if "ServicesDetailsGUI" module is imported. Therefore it is not reimported for every double click on any user on the treeview if "ServicesDetailsGUI" name is in globals().
# ----------------------------------- Services - Services Menus GUI Function (the code of this module in order to avoid running them during module import and defines "Services" tab menu/popover GUI objects and functions/signals) -----------------------------------
if'ServicesDetailsGUI'notinglobals():# Check if "ServicesDetailsGUI" module is imported. Therefore it is not reimported for every click on "Details" menu item on the right click menu if "ServicesDetailsGUI" name is in globals().
# Import locale and gettext modules for defining translation texts which will be recognized by gettext application (will be run by programmer externally) and exported into a ".pot" file.
defon_menuitem5102m_activate(widget):# "Add" item on the right click menu
if'StartupNewItemGUI'notinglobals():# Check if "StartupNewItemGUI" module is imported. Therefore it is not reimported for every click on "Add" menu item if "StartupNewItemGUI" name is in globals().
globalStartupNewItemGUI
importStartupNewItemGUI
StartupNewItemGUI.startup_new_item_import_func()
StartupNewItemGUI.startup_new_item_gui_func()
StartupNewItemGUI.window5101w.show()
defon_menuitem5103m_activate(widget):# "Remove" item on the right click menu
# Import locale and gettext modules for defining translation texts which will be recognized by gettext application (will be run by programmer externally) and exported into a ".pot" file.
# ----------------------------------- Storage - Storage Details Window GUI Function (the code of this module in order to avoid running them during module import and defines "Storage Details" window GUI objects and functions/signals) -----------------------------------
# Import locale and gettext modules for defining translation texts which will be recognized by gettext application (will be run by programmer externally) and exported into a ".pot" file.
selected_storage_kernel_name=Storage.disk_list[Storage.storage_data_rows.index(model[treeiter][:])]# "[:]" is used in order to copy entire list to be able to use it for getting index in the "storage_data_rows" list to use it getting name of the disk.
# Open Storage Details window
StorageDetailsGUI.storage_details_gui_function()
if'StorageDetailsGUI'notinglobals():# Check if "StorageDetailsGUI" module is imported. Therefore it is not reimported for every double click on any user on the treeview if "StorageDetailsGUI" name is in globals().
# Import locale and gettext modules for defining translation texts which will be recognized by gettext application (will be run by programmer externally) and exported into a ".pot" file.
defon_menuitem4107m_activate(widget):# "Rename Label" item on the right click menu
disk_name=StorageGUI.selected_storage_kernel_name
if'StorageRenameGUI'notinglobals():# Check if "StorageRenameGUI" module is imported. Therefore it is not reimported for every click on "Rename Label" menu item if "StorageRenameGUI" name is in globals().
globalStorageRenameGUI
importStorageRenameGUI
StorageRenameGUI.storage_rename_import_func()
StorageRenameGUI.storage_rename_gui_func()
StorageRenameGUI.window4101w2.show()
defon_menuitem4108m_activate(widget):# "Details" item on the right click menu
StorageDetailsGUI.storage_details_gui_function()
if'StorageDetailsGUI'notinglobals():# Check if "StorageDetailsGUI" module is imported. Therefore it is not reimported for double click on "Details" menu item on the right click menu if "StorageDetailsGUI" name is in globals().
# Import locale and gettext modules for defining translation texts which will be recognized by gettext application (will be run by programmer externally) and exported into a ".pot" file.
# Import locale and gettext modules for defining translation texts which will be recognized by gettext application (will be run by programmer externally) and exported into a ".pot" file.
global_tr# This arbitrary variable will be recognized by gettext application for extracting texts to be translated
# Import locale and gettext modules for defining translation texts which will be recognized by gettext application (will be run by programmer externally) and exported into a ".pot" file.
selected_user_uid=Users.uid_username_list[Users.users_data_rows.index(model[treeiter][:])][0]# "[:]" is used in order to copy entire list to be able to use it for getting index in the "users_data_rows" list to use it getting UID of the user.
# Open Users Details window
UsersDetailsGUI.users_details_gui_function()
if'UsersDetailsGUI'notinglobals():# Check if "UsersDetailsGUI" module is imported. Therefore it is not reimported for every double click on any user on the treeview if "UsersDetailsGUI" name is in globals().
# ----------------------------------- Users - No User Selected Dialog Function (shows a dialog when Open Users Right Click Menu is clicked without selecting an user) -----------------------------------
# ----------------------------------- Users - Users Menus GUI Function (the code of this module in order to avoid running them during module import and defines "Sensors" tab menu/popover GUI objects and functions/signals) -----------------------------------
...
...
@@ -34,7 +34,12 @@ def users_menus_gui_func():
# ********************** Define object functions for Users tab right click menu **********************
defon_menuitem3101m_activate(widget):# "Details" item on the right click menu
UsersDetailsGUI.users_details_gui_function()
if'UsersDetailsGUI'notinglobals():# Check if "UsersDetailsGUI" module is imported. Therefore it is not reimported for every click on "Details" menu item on right click menu if "UsersDetailsGUI" name is in globals().