Example #1
0
 def __init__(self):
     super(Error, self).__init__()
     loadUi(os.path.join(UI_DIRECTORY, 'error.ui'), self)
     self.icon = QtGui.QImage()
     self.icon.load(os.path.join(IMAGE_DIRECTORY, 'error.png'))
     self.error_label.setPixmap(QtGui.QPixmap(self.icon))
     AuthenticationClient.add_listener(self)
Example #2
0
 def __init__(self):
     super(ScanCard, self).__init__()
     loadUi(os.path.join(UI_DIRECTORY, 'scan_card.ui'), self)
     self.animation = QtGui.QMovie(
         os.path.join(IMAGE_DIRECTORY, 'scan_card.gif'))
     self.image_label.setMovie(self.animation)
     self.animation.start()
Example #3
0
 def __init__(self):
     super(Error, self).__init__()
     loadUi(os.path.join(UI_DIRECTORY, 'error.ui'), self)
     self.icon = QtGui.QImage()
     self.icon.load(os.path.join(IMAGE_DIRECTORY, 'error.png'))
     self.error_label.setPixmap(QtGui.QPixmap(self.icon))
     AuthenticationClient.add_listener(self)
Example #4
0
 def __init__(self, content):
     super(Welcome, self).__init__()
     self.content = content
     loadUi(os.path.join(UI_DIRECTORY, 'welcome.ui'), self)
     AuthenticationClient.add_listener(self)
     self.user_id = ''
     self.add_delivery_button.clicked.connect(self.add_delivery)
     self.receive_delivery_button.clicked.connect(self.retrieve_delivery)
Example #5
0
 def __init__(self):
     super(Header, self).__init__()
     loadUi(os.path.join(UI_DIRECTORY, 'header.ui'), self)
     self.logo = QtGui.QImage()
     self.logo.load(os.path.join(IMAGE_DIRECTORY, 'aidu.png'))
     self.logo_label.setPixmap(QtGui.QPixmap(self.logo.scaledToHeight(100)))
     self.logout_button.clicked.connect(self.logout)
     AuthenticationClient.add_listener(self)
Example #6
0
 def __init__(self):
     super(Header, self).__init__()
     loadUi(os.path.join(UI_DIRECTORY, "header.ui"), self)
     self.logo = QtGui.QImage()
     self.logo.load(os.path.join(IMAGE_DIRECTORY, "aidu.png"))
     self.logo_label.setPixmap(QtGui.QPixmap(self.logo.scaledToHeight(100)))
     self.logout_button.clicked.connect(self.logout)
     AuthenticationClient.add_listener(self)
Example #7
0
 def __init__(self, content):
     super(Welcome, self).__init__()
     self.content = content
     loadUi(os.path.join(UI_DIRECTORY, 'welcome.ui'), self)
     AuthenticationClient.add_listener(self)
     self.user_id = ''
     self.add_delivery_button.clicked.connect(self.add_delivery)
     self.receive_delivery_button.clicked.connect(self.retrieve_delivery)
 def __init__(self, content):
     super(RetrieveDelivery, self).__init__()
     self.content = content
     loadUi(os.path.join(UI_DIRECTORY, 'receive_delivery.ui'), self)
     self.drawer1_button.clicked.connect(self.drawer1_open)
     self.drawer2_button.clicked.connect(self.drawer2_open)
     self.drawer3_button.clicked.connect(self.drawer3_open)
     self.cancel_button.clicked.connect(self.cancel)
     self.recipient_id = None
     self.drawer_id = '1'
     AuthenticationClient.add_listener(self)
Example #9
0
 def __init__(self, content):
     super(RetrieveDelivery, self).__init__()
     self.content = content
     loadUi(os.path.join(UI_DIRECTORY, 'receive_delivery.ui'), self)
     self.drawer1_button.clicked.connect(self.drawer1_open)
     self.drawer2_button.clicked.connect(self.drawer2_open)
     self.drawer3_button.clicked.connect(self.drawer3_open)
     self.cancel_button.clicked.connect(self.cancel)
     self.recipient_id = None
     self.drawer_id = '1'
     AuthenticationClient.add_listener(self)
Example #10
0
 def __init__(self, content):
     super(OpenDrawer, self).__init__()
     Drawers.setup()
     self.content = content
     loadUi(os.path.join(UI_DIRECTORY, 'open_drawer.ui'), self)
     self.no_button.clicked.connect(self.back)
     self.yes_button.clicked.connect(self.save)
     self.count = 10
     self.open_drawer = False
     self.drawer_id = '1'
     self.recipient_id = ''
     self.location_id = ''
     self.sender_id = ''
     self.success_message = 'Have you successfully placed your delivery?'
     self.instruction_message = 'place'
Example #11
0
    def __init__(self, content):
        super(AddDelivery, self).__init__()

        self.content = content
        loadUi(os.path.join(UI_DIRECTORY, 'add_delivery.ui'), self)
        self.cancel_button.clicked.connect(self.cancel)
        self.save_button.clicked.connect(self.place)
        self.deliveries = {}
        self.sender = None
        self.drawer_id = '1'

        for location in Location.get_locations():
            self.location_combobox.addItem(location.name)

        #from PySide.QtGui import QComboBox
        #test = QComboBox()
        #self.recipient_combobox.addItems(User.get_users())
        #self.location_combobox.addItems(Location.get_locations())

        AuthenticationClient.add_listener(self)
Example #12
0
    def __init__(self, content):
        super(AddDelivery, self).__init__()

        self.content = content
        loadUi(os.path.join(UI_DIRECTORY, 'add_delivery.ui'), self)
        self.cancel_button.clicked.connect(self.cancel)
        self.save_button.clicked.connect(self.place)
        self.deliveries = {}
        self.sender = None
        self.drawer_id = '1'

        for location in Location.get_locations():
            self.location_combobox.addItem(location.name)

        #from PySide.QtGui import QComboBox
        #test = QComboBox()
        #self.recipient_combobox.addItems(User.get_users())
        #self.location_combobox.addItems(Location.get_locations())

        AuthenticationClient.add_listener(self)
Example #13
0
 def __init__(self):
     super(Inputer, self).__init__()
     loadUi('form.ui', self)
     self.lineEdit.returnPressed.connect(self.input)
Example #14
0
 def __init__(self):
     super(ScanCard, self).__init__()
     loadUi(os.path.join(UI_DIRECTORY, 'scan_card.ui'), self)
     self.animation = QtGui.QMovie(os.path.join(IMAGE_DIRECTORY, 'scan_card.gif'))
     self.image_label.setMovie(self.animation)
     self.animation.start()