Пример #1
0
    def __init__(self, parent=None):
        super().__init__(parent=parent)

        self.lename = myLineEdit('Masukkan Username')
        self.lepass = myLineEdit('Masukkan Password')
        self.lepass.setEchoMode(QLineEdit.Password)

        self.btn_login = myBtn('Log in',self.login)
        self.btn_back = myBtn('Back',self.back)

        self.lbl_wel = myLabel('WELCOME ADMIN',font_jdl)
        self.lbl_dlg = myLabel('Log in sebagai Admin',font_dlg)

        self.flay = QFormLayout()

        vb = QVBoxLayout()
        vb.addWidget(self.lbl_wel,alignment=Qt.AlignCenter)
        vb.addWidget(self.lbl_dlg,alignment=Qt.AlignCenter)
        vb.addSpacing(20)
        self.flay.addRow(vb)

        self.flay.addRow(self.lename)
        self.flay.addRow(self.lepass)

        vb2 = twoWidLayout(self.btn_login, self.btn_back)
        self.flay.addRow(vb2)

        self.flay.setFormAlignment(Qt.AlignVCenter)
        self.flay.setHorizontalSpacing(15)
        self.setLayout(self.flay)
Пример #2
0
    def __init__(self):
        super(Login,self).__init__()

        self.lbl_wel = myLabel('SELAMAT DATANG', font_jdl)
        self.lbl_dlg = myLabel('Silahkan Login dulu!', font_dlg)

        self.lename = myLineEdit('Masukkan Username',auto=False,w=600)
        self.lepass = myLineEdit('Masukkan Password',auto=False,w=600)
        self.lepass.setEchoMode(QLineEdit.Password)

        self.btn_login = myBtn('Log in', self.login)
        self.btn_back = myBtn('Back', self.back)

        self.flay = QFormLayout()

        vb = QVBoxLayout()
        vb.addWidget(self.lbl_wel, alignment=Qt.AlignHCenter)
        vb.addWidget(self.lbl_dlg, alignment=Qt.AlignHCenter)
        vb.addSpacing(20)
        self.flay.addRow(vb)

        vb3 = twoWidLayout(self.lename, self.lepass)
        vb2 = twoWidLayout(self.btn_login, self.btn_back)
        self.flay.addRow(vb3)
        self.flay.addRow(vb2)

        self.flay.setFormAlignment(Qt.AlignVCenter)
        self.flay.setHorizontalSpacing(15)
        self.flay.setSpacing(10)
        self.setLayout(self.flay)
Пример #3
0
    def __init__(self,parent=None):
        super().__init__(parent=parent)

        self.lbl_wel = myLabel('SELAMAT DATANG',font_jdl)
        self.lbl_dlg = myLabel('Silahkan Login/Sign up dulu!',font_dlg)

        self.btn_login = myBtn('Log in',self.login)
        self.btn_signup = myBtn('Sign up',self.signup)

        hb = QHBoxLayout()
        hb.addWidget(self.btn_login)
        hb.addWidget(self.btn_signup)
        hb.setSpacing(15)

        vb = QVBoxLayout()
        vb.addWidget(self.lbl_wel,alignment=Qt.AlignHCenter)
        vb.addWidget(self.lbl_dlg,alignment=Qt.AlignHCenter)
        vb.addSpacing(20)
        vb.addLayout(hb)

        self.flay = QFormLayout()
        self.flay.addRow(vb)
        self.flay.setFormAlignment(Qt.AlignCenter)
        self.flay.setSpacing(10)
        self.setLayout(self.flay)
Пример #4
0
    def __init__(self, nama):
        super(PenjualGUI, self).__init__()

        vb = QVBoxLayout()

        self.lbl_kantin = myFrameLabel('Kantin ITK', font_jdl_u)
        self.lbl_nama = myFrameLabel(f'Halo, {nama}!', font_dlg)
        self.lbl = myLabel('Halo, Penjual', font_jdl)
        self.btn = myFrameBtn('Log out', self.logout)
        # self.btn2 = myFrameBtn('Log out2', self.logout2)

        self.test = sideMenu()

        vb.addWidget(self.lbl_kantin, alignment=Qt.AlignLeft)
        vb.addWidget(self.lbl_nama, alignment=Qt.AlignLeft)
        vb.addWidget(self.btn, alignment=Qt.AlignCenter)
        # vb.addWidget(self.btn2,alignment=Qt.AlignCenter)

        flay = QFormLayout()
        flay.addRow(vb)
        flay.setFormAlignment(Qt.AlignTop)
        self.test.setLayout(flay)

        hb = QHBoxLayout()

        hb.addWidget(self.lbl, alignment=Qt.AlignLeft)
        hb.setContentsMargins(0, 0, 0, 0)

        hb.addWidget(self.test)
        self.setLayout(hb)
Пример #5
0
    def __init__(self):
        super(PenjualGUI,self).__init__()

        self.lbl = myLabel('Halo, Penjual', font_jdl)

        hb = QHBoxLayout()
        # self.flay = QFormLayout()
        hb.addWidget(self.lbl, alignment=Qt.AlignLeft)
        self.setLayout(hb)
Пример #6
0
    def __init__(self):
        super(KasirGUI,self).__init__()

        self.lbl = myLabel('Halo, Kasir', font_jdl)

        hb = QHBoxLayout()
        t = sideMenu
        # self.flay = QFormLayout()
        hb.addWidget(self.lbl, alignment=Qt.AlignLeft)
        hb.addLayout(t)
        self.setLayout(hb)
Пример #7
0
    def __init__(self, parent=None):
        super().__init__(parent=parent)

        self.lbl_dlg = myLabel('Silahkan isi data diri calon pegawai!',font_dlg)
        self.lename = myLineEdit('Masukkan Username')
        self.lepass = myLineEdit('Masukkan Password')
        self.lepass.setEchoMode(QLineEdit.Password)
        self.lealmt = myLineEdit('Masukkan Alamat')
        self.borndt = QDateEdit()
        self.lekntk = myLineEdit('Masukkan Kontak')
        self.lekntk.setFixedWidth(200)
        self.borndt.setCalendarPopup(True)
        self.cbx_job = QComboBox()
        self.cbx_job.addItems(['Kasir', 'Pelayan', 'Penjual'])

        self.btn_signup = myBtn('Sign up',self.signup)
        self.btn_back = myBtn('Back',self.back)

        self.flay = QFormLayout()
        hb = QHBoxLayout()
        hb.addWidget(self.lbl_dlg, alignment=Qt.AlignCenter)

        self.flay.addRow(hb)
        self.flay.addRow(self.lename)
        self.flay.addRow(self.lepass)
        self.flay.addRow(self.lekntk,self.lealmt)
        self.flay.addRow(self.borndt)
        self.flay.addRow(self.cbx_job)

        vb2 = twoWidLayout(self.btn_signup, self.btn_back)
        self.flay.addRow(vb2)

        self.flay.setFormAlignment(Qt.AlignVCenter)
        self.flay.setHorizontalSpacing(15)
        self.flay.setSpacing(10)
        self.setLayout(self.flay)