Exemplo n.º 1
0
 def add_project_handler(self):
     if self.token is None:
         self.error_dialog = QtWidgets.QErrorMessage()
         self.error_dialog.showMessage('Please login to use this feature')
         return
     else:
         logging.debug(self.token)
     self.proj_diag = QtWidgets.QDialog()
     self.add_proj_dialog = add_project_ui.Ui_addProjectDialog()
     self.add_proj_dialog.setupUi(self.proj_diag)
     self.add_proj_dialog.f_content = None
     self.add_proj_dialog.buttonBox.accepted.connect(self.add_project)
     self.add_proj_dialog.buttonBox.button(QtWidgets.QDialogButtonBox.Ok).setEnabled(False)
     self.add_proj_dialog.path.textChanged.connect(self.check_and_enable_project_accept)
     self.add_proj_dialog.description.textChanged.connect(self.check_and_enable_project_accept)
     self.add_proj_dialog.browse.clicked.connect(self.set_exported_file)
     self.proj_diag.show()
Exemplo n.º 2
0
 def add_user_handler(self):
     self.user_diag = QtWidgets.QDialog()
     self.add_user_dialog = add_user_ui.Ui_addUserDialog()
     self.add_user_dialog.setupUi(self.user_diag)
     self.add_user_dialog.buttonBox.accepted.connect(self.add_user)
     self.user_diag.show()