Ejemplo n.º 1
0
 def addUsers(self):
     "Searches old users and adds them to userpage's combo box"
     self.users = partition.allUsers()
     if len(self.users) == 0:
         message = i18n("Migration tool couldn't find any old users in your computer. You can't use this aplication.")
         QMessageBox.critical(self, i18n("No User"), message, QMessageBox.Ok, QMessageBox.NoButton)
         self.kapp.quit()
     for user in self.users:
         part, parttype, username, userdir = user
         self.userpage.usersBox.insertItem("%s - %s (%s)" % (username, parttype, part))
Ejemplo n.º 2
0
 def addUsers(self):
     "Searches old users and adds them to userpage's combo box"
     self.users = partition.allUsers()
     if len(self.users) == 0:
         self.userpage.usersBox.setEnabled(False)
         self.setNextEnabled(self.userpage, False)
         logging.error("No User")
     for user in self.users:
         part, parttype, username, userdir = user
         self.userpage.usersBox.insertItem("%s - %s (%s)" % (username, parttype, part))