Ejemplo n.º 1
0
 def on_button_clicked(self):
     global path
     msgBox = QtWidgets.QMessageBox()
     buttonReply = msgBox.question(self, 'JaSONx', "Change hierarchy path?",  QtWidgets.QMessageBox.Yes |  QtWidgets.QMessageBox.No,  QtWidgets.QMessageBox.No)
     if buttonReply == QtWidgets.QMessageBox.Yes:
         response = configuration.change_hierarchy_path(path)
         if(response == True):
             msgBox.about(self, "Change hierarchy path", "Changed path!")   
         else:
             msgBox.critical(self, "Change hierarchy path", "Error!")
     self.close()
Ejemplo n.º 2
0
 def change_path_hierarchy_function(self):
     button_reply = self.message_box.question(
         self, 'JasonX', "Change hierarchy path?",
         QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No,
         QtWidgets.QMessageBox.No)
     if button_reply == QtWidgets.QMessageBox.Yes:
         response = configuration.change_hierarchy_path(
             self.folder_path_tree_view)
         if (response == True):
             logging.info("Hierarchy path changed")
             self.message_box.about(self, "Change hierarchy path",
                                    "Changed path!")
         else:
             logging.info("Hierarchy path changing failed")
             self.message_box.critical(self, "Change hierarchy path",
                                       "Error!")
     self.close()
Ejemplo n.º 3
0
 def on_button_clicked(self):
     global path
     configuration.change_hierarchy_path(path)
     self.close()