def on_radio_button_clicked(self): Administration = Admin() date1 = self.txtdate1.text() date2 = self.txtdate2.text() if self.r1.isChecked(): r = Administration.mostsold(date1, date2) elif self.r2.isChecked(): r = Administration.mostsold2(date1, date2) elif self.r3.isChecked(): r = Administration.ten_customer(date1, date2) elif self.r4.isChecked(): r = Administration.five_zip(date1, date2) elif self.r5.isChecked(): r = Administration.avg_price(date1, date2) msg = tupleMsg(r) self.showMessage(msg)
def on_radio_button_clicked(self): User_view = User(self.CID) pname = self.txtpname.text() ptype = self.txtptype.text() status = self.txtstatus.text() if self.r11.isChecked(): r = User_view.ccoption() elif self.r12.isChecked(): r = User_view.addoption() elif self.r1.isChecked(): r = User_view.viewprofile() elif self.r2.isChecked(): r = User_view.viewhistory() elif self.r3.isChecked(): r = User_view.viewbypname(pname) elif self.r4.isChecked(): r = User_view.viewbyptype(ptype) elif self.r5.isChecked(): r = User_view.viewbystatus(status) msg = tupleMsg(r) print(msg) self.showMessage(msg)
def lookupButton(self): status = self.txtview.text() admin = Admin() r = admin.viewbystatus(status) self.showMessage(tupleMsg(r))
def viewshipaddButton(self): cart = Cart(self.CID) r = cart.addoption() self.showMessage("Shipping", tupleMsg(r))
def viewpayButton(self): cart = Cart(self.CID) r = cart.ccoption() self.showMessage("Payment", tupleMsg(r))
def viewcartButton(self): cart = Cart(self.CID) r = cart.view() self.showMessage("Cart", tupleMsg(r))
def viewButton(self): ptype = self.combobox.currentText() cart = Cart(self.CID) r = cart.viewbytype(ptype) self.showMessage(ptype, tupleMsg(r))