def retranslateUi(self, UISubwayMenuBreakfast): _translate = QtCore.QCoreApplication.translate UISubwayMenuBreakfast.setWindowTitle( _translate("UISubwayMenuBreakfast", "Subway's Breakfast Menu")) self.NorthSpineCanteen.setText( _translate("UISubwayMenuBreakfast", "North Spine Canteen")) self.SUBLabel.setText( _translate("UISubwayMenuBreakfast", "Subway's Breakfast Menu")) self.OperatingLabel.setText( _translate( "UISubwayMenuBreakfast", "Operating Hours: 8AM - 11PM Daily \n Breakfast: 8AM - 11AM Lunch/Dinner: 11AM - 11PM \n Peak Hours: 11AM - 2PM \n Special Menu: SAT,SUN" )) #Displaying the menu's item using the methods imported from the database self.Item1.setText( _translate( "UISubwayMenuBreakfast", GetFoodORPrice("NorthSpineCanteen", "Subway", "Breakfast", 0))) self.Item2.setText( _translate( "UISubwayMenuBreakfast", GetFoodORPrice("NorthSpineCanteen", "Subway", "Breakfast", 1))) self.Item3.setText( _translate( "UISubwayMenuBreakfast", GetFoodORPrice("NorthSpineCanteen", "Subway", "Breakfast", 2))) self.Item4.setText( _translate( "UISubwayMenuBreakfast", GetFoodORPrice("NorthSpineCanteen", "Subway", "Breakfast", 3))) #Displaying the item's price using the methods imported from the database self.Price1.setText( _translate( "UISubwayMenuBreakfast", GetFoodORPrice("PNorthSpineCanteen", "Subway", "Breakfast", 0))) self.Price2.setText( _translate( "UISubwayMenuBreakfast", GetFoodORPrice("PNorthSpineCanteen", "Subway", "Breakfast", 1))) self.Price3.setText( _translate( "UISubwayMenuBreakfast", GetFoodORPrice("PNorthSpineCanteen", "Subway", "Breakfast", 2))) self.Price4.setText( _translate( "UISubwayMenuBreakfast", GetFoodORPrice("PNorthSpineCanteen", "Subway", "Breakfast", 3))) self.InputLabel.setText( _translate("UISubwayMenuBreakfast", "Input Customer in Queue:")) self.OutputLabel.setText( _translate("UISubwayMenuBreakfast", "Estimated Waiting Time:")) self.CalculateButton.setText( _translate("UISubwayMenuBreakfast", "Calculate")) self.BackButton.setText(_translate("UISubwayMenuBreakfast", "Back"))
def showTime(self): now = datetime.datetime.now() hour = int(now.strftime("%H")) day = now.strftime("%a") self.DayDateTimeLabel.setText( now.strftime("%a" + " " + "%d-%h-%Y" + " " + "%H:%M:%S")) #Display Menu store is open if hour >= 7 and hour <= 19 and day != "Sat" and day != "Sun": self.NorthSpineCanteen.setText("North Spine Canteen") self.InputBox.show() self.InputLabel.show() self.OutputLabel.show() self.Output.show() self.CalculateButton.show() #Displaying the menu's item using the methods imported from the database self.Item1.setText( GetFoodORPrice("NorthSpineCanteen", "DrinksStore", "AllDay", 0)) self.Item2.setText( GetFoodORPrice("NorthSpineCanteen", "DrinksStore", "AllDay", 1)) self.Item3.setText( GetFoodORPrice("NorthSpineCanteen", "DrinksStore", "AllDay", 2)) self.Item4.setText( GetFoodORPrice("NorthSpineCanteen", "DrinksStore", "AllDay", 3)) #Displaying the item's price using the methods imported from the database self.Price1.setText( GetFoodORPrice("PNorthSpineCanteen", "DrinksStore", "AllDay", 0)) self.Price2.setText( GetFoodORPrice("PNorthSpineCanteen", "DrinksStore", "AllDay", 1)) self.Price3.setText( GetFoodORPrice("PNorthSpineCanteen", "DrinksStore", "AllDay", 2)) self.Price4.setText( GetFoodORPrice("PNorthSpineCanteen", "DrinksStore", "AllDay", 3)) #Display Restaurant is close else: self.NorthSpineCanteen.setText("RESTURANT IS CLOSED") self.InputBox.hide() self.InputLabel.hide() self.OutputLabel.hide() self.Output.hide() self.CalculateButton.hide() self.Item1.hide() self.Item2.hide() self.Item3.hide() self.Item4.hide() self.Price1.hide() self.Price2.hide() self.Price3.hide() self.Price4.hide()
def retranslateUi(self, UIWesternFoodStoreMenuNONPEAK): _translate = QtCore.QCoreApplication.translate UIWesternFoodStoreMenuNONPEAK.setWindowTitle(_translate("UIWesternFoodStoreMenuNONPEAK", "WesternFoodStore's Menu")) self.NorthSpineCanteen.setText(_translate("UIWesternFoodStoreMenuNONPEAK", "North Spine Canteen")) self.WesternFoodLabel.setText(_translate("UIWesternFoodStoreMenuNONPEAK", "Henry Western's Menu")) self.OperatingLabel.setText(_translate("UIWesternFoodStoreMenuNONPEAK", "Operating Hours: 10AM-7PM (MON-FRI) \n Peak Hours: 11AM - 2PM \n Special Menu: WED,FRI")) #Displaying the menu's item using the methods imported from the database self.Item1.setText(_translate("UIWesternFoodStoreMenuNONPEAK", GetFoodORPrice("NorthSpineCanteen","WesternFoodStore","AllDay",0))) self.Item2.setText(_translate("UIWesternFoodStoreMenuNONPEAK", GetFoodORPrice("NorthSpineCanteen","WesternFoodStore","AllDay",1))) self.Item3.setText(_translate("UIWesternFoodStoreMenuNONPEAK", GetFoodORPrice("NorthSpineCanteen","WesternFoodStore","AllDay",2))) self.Item4.setText(_translate("UIWesternFoodStoreMenuNONPEAK", GetFoodORPrice("NorthSpineCanteen","WesternFoodStore","AllDay",3))) #Displaying the item's price using the methods imported from the database self.Price1.setText(_translate("UIWesternFoodStoreMenuNONPEAK", GetFoodORPrice("PNorthSpineCanteen","WesternFoodStore","AllDay",0))) self.Price2.setText(_translate("UIWesternFoodStoreMenuNONPEAK", GetFoodORPrice("PNorthSpineCanteen","WesternFoodStore","AllDay",1))) self.Price3.setText(_translate("UIWesternFoodStoreMenuNONPEAK", GetFoodORPrice("PNorthSpineCanteen","WesternFoodStore","AllDay",2))) self.Price4.setText(_translate("UIWesternFoodStoreMenuNONPEAK", GetFoodORPrice("PNorthSpineCanteen","WesternFoodStore","AllDay",3))) self.InputLabel.setText(_translate("UIWesternFoodStoreMenuNONPEAK", "Input Customer in Queue:")) self.OutputLabel.setText(_translate("UIWesternFoodStoreMenuNONPEAK", "Estimated Waiting Time:")) self.CalculateButton.setText(_translate("UIWesternFoodStoreMenuNONPEAK", "Calculate")) self.BackButton.setText(_translate("UIWesternFoodStoreMenuNONPEAK", "Back"))
def showTime(self): now = datetime.datetime.now() hour = int(now.strftime("%H")) day = str(now.strftime("%a")) self.DayDateTimeLabel.setText( now.strftime("%a" + " " + "%d-%h-%Y" + " " + "%H:%M:%S")) #Display Breakfast Menu if hour >= 8 and hour <= 10: self.NorthSpineCanteen.setText("North Spine Canteen") self.SUBLabel.setText("Subway's Breakfast Menu") self.InputBox.show() self.InputLabel.show() self.OutputLabel.show() self.Output.show() self.CalculateButton.show() self.Item1.show() self.Item2.show() self.Item3.show() self.Item4.show() self.Item5.show() self.Item6.show() self.Price1.show() self.Price2.show() self.Price3.show() self.Price4.show() self.Price5.show() self.Price6.show() #Displaying the menu's item using the methods imported from the database self.Item1.setText( GetFoodORPrice("NorthSpineCanteen", "Subway", "Breakfast", 0)) self.Item2.setText( GetFoodORPrice("NorthSpineCanteen", "Subway", "Breakfast", 1)) self.Item3.setText( GetFoodORPrice("NorthSpineCanteen", "Subway", "Breakfast", 2)) self.Item4.setText( GetFoodORPrice("NorthSpineCanteen", "Subway", "Breakfast", 3)) self.Item1.setGeometry(QtCore.QRect(80, 210, 221, 35)) self.Item2.setGeometry(QtCore.QRect(80, 270, 221, 35)) self.Item3.setGeometry(QtCore.QRect(80, 330, 221, 35)) self.Item4.setGeometry(QtCore.QRect(80, 390, 221, 35)) self.Item5.hide() self.Item6.hide() #Displaying the item's price using the methods imported from the database self.Price1.setText( GetFoodORPrice("PNorthSpineCanteen", "Subway", "Breakfast", 0)) self.Price2.setText( GetFoodORPrice("PNorthSpineCanteen", "Subway", "Breakfast", 1)) self.Price3.setText( GetFoodORPrice("PNorthSpineCanteen", "Subway", "Breakfast", 2)) self.Price4.setText( GetFoodORPrice("PNorthSpineCanteen", "Subway", "Breakfast", 3)) self.Price1.setGeometry(QtCore.QRect(320, 210, 131, 35)) self.Price2.setGeometry(QtCore.QRect(320, 270, 131, 35)) self.Price3.setGeometry(QtCore.QRect(320, 330, 131, 35)) self.Price4.setGeometry(QtCore.QRect(320, 390, 131, 35)) self.Price5.hide() self.Price6.hide() #Display Weekday Lunch/Dinner Menu elif hour >= 11 and hour <= 22 and day != "Sat" and day != "Sun": self.NorthSpineCanteen.setText("North Spine Canteen") self.SUBLabel.setText("Subway's Lunch/Dinner Menu") self.InputBox.show() self.InputLabel.show() self.OutputLabel.show() self.Output.show() self.CalculateButton.show() self.Item1.show() self.Item2.show() self.Item3.show() self.Item4.show() self.Item5.show() self.Item6.show() self.Price1.show() self.Price2.show() self.Price3.show() self.Price4.show() self.Price5.show() self.Price6.show() #Displaying the menu's item using the methods imported from the database self.Item1.setText( GetFoodORPrice("NorthSpineCanteen", "Subway", "Lunch", 0)) self.Item2.setText( GetFoodORPrice("NorthSpineCanteen", "Subway", "Lunch", 1)) self.Item3.setText( GetFoodORPrice("NorthSpineCanteen", "Subway", "Lunch", 2)) self.Item4.setText( GetFoodORPrice("NorthSpineCanteen", "Subway", "Lunch", 3)) self.Item1.setGeometry(QtCore.QRect(80, 210, 221, 35)) self.Item2.setGeometry(QtCore.QRect(80, 270, 221, 35)) self.Item3.setGeometry(QtCore.QRect(80, 330, 221, 35)) self.Item4.setGeometry(QtCore.QRect(80, 390, 221, 35)) self.Item5.hide() self.Item6.hide() #Displaying the item's price using the methods imported from the database self.Price1.setText( GetFoodORPrice("PNorthSpineCanteen", "Subway", "Lunch", 0)) self.Price2.setText( GetFoodORPrice("PNorthSpineCanteen", "Subway", "Lunch", 1)) self.Price3.setText( GetFoodORPrice("PNorthSpineCanteen", "Subway", "Lunch", 2)) self.Price4.setText( GetFoodORPrice("PNorthSpineCanteen", "Subway", "Lunch", 3)) self.Price1.setGeometry(QtCore.QRect(320, 210, 131, 35)) self.Price2.setGeometry(QtCore.QRect(320, 270, 131, 35)) self.Price3.setGeometry(QtCore.QRect(320, 330, 131, 35)) self.Price4.setGeometry(QtCore.QRect(320, 390, 131, 35)) self.Price5.hide() self.Price6.hide() #Display Weekend Lunch/Dinner Menu elif hour >= 11 and hour <= 22 and (day == "Sat" or day == "Sun"): self.NorthSpineCanteen.setText("North Spine Canteen") self.SUBLabel.setText("MacDonald's Lunch/Dinner Menu") self.InputBox.show() self.InputLabel.show() self.OutputLabel.show() self.Output.show() self.CalculateButton.show() self.Item1.show() self.Item2.show() self.Item3.show() self.Item4.show() self.Item5.show() self.Item6.show() self.Price1.show() self.Price2.show() self.Price3.show() self.Price4.show() self.Price5.show() self.Price6.show() #Displaying the menu's item using the methods imported from the database self.Item1.setText( GetFoodORPrice("NorthSpineCanteen", "Subway", "Lunch", 0)) self.Item2.setText( GetFoodORPrice("NorthSpineCanteen", "Subway", "Lunch", 1)) self.Item3.setText( GetFoodORPrice("NorthSpineCanteen", "Subway", "Lunch", 2)) self.Item4.setText( GetFoodORPrice("NorthSpineCanteen", "Subway", "Lunch", 3)) self.Item5.setText( GetFoodORPrice("NorthSpineCanteen", "Subway", "Lunch", 4)) self.Item6.setText( GetFoodORPrice("NorthSpineCanteen", "Subway", "Lunch", 5)) self.Item1.setGeometry(QtCore.QRect(80, 180, 221, 35)) self.Item2.setGeometry(QtCore.QRect(80, 220, 221, 35)) self.Item3.setGeometry(QtCore.QRect(80, 260, 221, 35)) self.Item4.setGeometry(QtCore.QRect(80, 300, 221, 35)) self.Item5.setGeometry(QtCore.QRect(80, 340, 221, 35)) self.Item6.setGeometry(QtCore.QRect(80, 380, 221, 35)) #Displaying the item's price using the methods imported from the database self.Price1.setText( GetFoodORPrice("PNorthSpineCanteen", "Subway", "Lunch", 0)) self.Price2.setText( GetFoodORPrice("PNorthSpineCanteen", "Subway", "Lunch", 1)) self.Price3.setText( GetFoodORPrice("PNorthSpineCanteen", "Subway", "Lunch", 2)) self.Price4.setText( GetFoodORPrice("PNorthSpineCanteen", "Subway", "Lunch", 3)) self.Price5.setText( GetFoodORPrice("PNorthSpineCanteen", "Subway", "Lunch", 4)) self.Price6.setText( GetFoodORPrice("PNorthSpineCanteen", "Subway", "Lunch", 5)) self.Price1.setGeometry(QtCore.QRect(320, 180, 131, 35)) self.Price2.setGeometry(QtCore.QRect(320, 220, 131, 35)) self.Price3.setGeometry(QtCore.QRect(320, 260, 131, 35)) self.Price4.setGeometry(QtCore.QRect(320, 300, 131, 35)) self.Price5.setGeometry(QtCore.QRect(320, 340, 131, 35)) self.Price6.setGeometry(QtCore.QRect(320, 380, 131, 35)) #Display Restaurant is close else: self.NorthSpineCanteen.setText("RESTAURANT IS CLOSED") self.SUBLabel.setText("Subway's Menu") self.InputBox.hide() self.InputLabel.hide() self.OutputLabel.hide() self.Output.hide() self.CalculateButton.hide() self.Item1.hide() self.Item2.hide() self.Item3.hide() self.Item4.hide() self.Item5.hide() self.Item6.hide() self.Price1.hide() self.Price2.hide() self.Price3.hide() self.Price4.hide() self.Price5.hide() self.Price6.hide()
def retranslateUi(self, UIMacDonaldMenuLunchWEEKEND): _translate = QtCore.QCoreApplication.translate UIMacDonaldMenuLunchWEEKEND.setWindowTitle(_translate("UIMacDonaldMenuLunchWEEKEND", "MacDonald's Menu")) self.NorthSpineCanteen.setText(_translate("UIMacDonaldMenuLunchWEEKEND", "North Spine Canteen")) self.MCDLabel.setText(_translate("UIMacDonaldMenuLunchWEEKEND", "MacDonald's Lunch/Dinner Menu")) self.OperatingLabel.setText(_translate("UIMacDonaldMenuLunchNONPEAK", "Operating Hours: 6AM-11PM Daily \n Breakfast: 6AM-11AM Lunch: 11AM-11PM \n Peak Hours: 11AM - 2PM \n Special Menu: SAT,SUN")) #Displaying the menu's item using the methods imported from the database self.Item1.setText(_translate("UIMacDonaldMenuLunchWEEKEND", GetFoodORPrice("NorthSpineCanteen", "MacDonald", "Lunch",0))) self.Item2.setText(_translate("UIMacDonaldMenuLunchWEEKEND", GetFoodORPrice("NorthSpineCanteen", "MacDonald", "Lunch",1))) self.Item3.setText(_translate("UIMacDonaldMenuLunchWEEKEND", GetFoodORPrice("NorthSpineCanteen", "MacDonald", "Lunch",2))) self.Item4.setText(_translate("UIMacDonaldMenuLunchWEEKEND", GetFoodORPrice("NorthSpineCanteen", "MacDonald", "Lunch",3))) self.Item5.setText(_translate("UIMacDonaldMenuLunchWEEKEND", GetFoodORPrice("NorthSpineCanteen", "MacDonald", "Lunch",4))) self.Item6.setText(_translate("UIMacDonaldMenuLunchWEEKEND", GetFoodORPrice("NorthSpineCanteen", "MacDonald", "Lunch",5))) #Displaying the item's price using the methods imported from the database self.Price1.setText(_translate("UIMacDonaldMenuLunchWEEKEND", GetFoodORPrice("PNorthSpineCanteen", "MacDonald", "Lunch",0))) self.Price2.setText(_translate("UIMacDonaldMenuLunchWEEKEND", GetFoodORPrice("PNorthSpineCanteen", "MacDonald", "Lunch",1))) self.Price3.setText(_translate("UIMacDonaldMenuLunchWEEKEND", GetFoodORPrice("PNorthSpineCanteen", "MacDonald", "Lunch",2))) self.Price4.setText(_translate("UIMacDonaldMenuLunchWEEKEND", GetFoodORPrice("PNorthSpineCanteen", "MacDonald", "Lunch",3))) self.Price5.setText(_translate("UIMacDonaldMenuLunchWEEKEND", GetFoodORPrice("PNorthSpineCanteen", "MacDonald", "Lunch",4))) self.Price6.setText(_translate("UIMacDonaldMenuLunchWEEKEND", GetFoodORPrice("PNorthSpineCanteen", "MacDonald", "Lunch",5))) self.InputLabel.setText(_translate("UIMacDonaldMenuLunchWEEKEND", "Input Customer in Queue:")) self.OutputLabel.setText(_translate("UIMacDonaldMenuLunchWEEKEND", "Estimated Waiting Time: ")) self.CalculateButton.setText(_translate("UIMacDonaldMenuLunchWEEKEND", "Calculate")) self.BackButton.setText(_translate("UIMacDonaldMenuLunchWEEKEND", "Back"))
def showTime(self): now = datetime.datetime.now() hour = int(now.strftime("%H")) day = now.strftime("%a") self.DayDateTimeLabel.setText( now.strftime("%a" + " " + "%d-%h-%Y" + " " + "%H:%M:%S")) #Display Menu store is open if hour >= 9 and hour <= 19 and day != "Sat" and day != "Sun": self.NorthSpineCanteen.setText("North Spine Canteen") self.ChickenRiceLabel.setText("The Chicken Rice's Store Menu") self.InputBox.show() self.InputLabel.show() self.OutputLabel.show() self.Output.show() self.CalculateButton.show() self.Item1.show() self.Item2.show() self.Item3.show() self.Item4.show() self.Item5.show() self.Item6.show() self.Price1.show() self.Price2.show() self.Price3.show() self.Price4.show() self.Price5.show() self.Price6.show() #Display Normal Menu if day == "Mon" or day == "Wed" or day == "Fri": #Displaying the menu's item using the methods imported from the database self.Item1.setText( GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 0)) self.Item2.setText( GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 1)) self.Item3.setText( GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 2)) self.Item4.setText( GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 3)) self.Item1.setGeometry(QtCore.QRect(80, 200, 221, 35)) self.Item2.setGeometry(QtCore.QRect(80, 260, 221, 35)) self.Item3.setGeometry(QtCore.QRect(80, 320, 221, 35)) self.Item4.setGeometry(QtCore.QRect(80, 380, 221, 35)) self.Item5.hide() self.Item6.hide() #Displaying the item's price using the methods imported from the database self.Price1.setText( GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 0)) self.Price2.setText( GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 1)) self.Price3.setText( GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 2)) self.Price4.setText( GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 3)) self.Price1.setGeometry(QtCore.QRect(320, 200, 131, 35)) self.Price2.setGeometry(QtCore.QRect(320, 260, 131, 35)) self.Price3.setGeometry(QtCore.QRect(320, 320, 131, 35)) self.Price4.setGeometry(QtCore.QRect(320, 380, 131, 35)) self.Price5.hide() self.Price6.hide() #Display Special Menu else: #Displaying the menu's item using the methods imported from the database self.Item1.setText( GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 0)) self.Item2.setText( GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 1)) self.Item3.setText( GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 2)) self.Item4.setText( GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 3)) self.Item5.setText( GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 4)) self.Item6.setText( GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 5)) self.Item1.setGeometry(QtCore.QRect(80, 180, 221, 35)) self.Item2.setGeometry(QtCore.QRect(80, 220, 221, 35)) self.Item3.setGeometry(QtCore.QRect(80, 260, 221, 35)) self.Item4.setGeometry(QtCore.QRect(80, 300, 221, 35)) self.Item5.setGeometry(QtCore.QRect(80, 340, 221, 35)) self.Item6.setGeometry(QtCore.QRect(80, 380, 221, 35)) #Displaying the item's price using the methods imported from the database self.Price1.setText( GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 0)) self.Price2.setText( GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 1)) self.Price3.setText( GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 2)) self.Price4.setText( GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 3)) self.Price5.setText( GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 4)) self.Price6.setText( GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 5)) self.Price1.setGeometry(QtCore.QRect(320, 180, 131, 35)) self.Price2.setGeometry(QtCore.QRect(320, 220, 131, 35)) self.Price3.setGeometry(QtCore.QRect(320, 260, 131, 35)) self.Price4.setGeometry(QtCore.QRect(320, 300, 131, 35)) self.Price5.setGeometry(QtCore.QRect(320, 340, 131, 35)) self.Price6.setGeometry(QtCore.QRect(320, 380, 131, 35)) #Display Restaurant is close else: self.NorthSpineCanteen.setText("RESTAURANT IS CLOSED") self.ChickenRiceLabel.setText("The Chicken Rice Store's Menu") self.InputBox.hide() self.InputLabel.hide() self.OutputLabel.hide() self.Output.hide() self.CalculateButton.hide() self.Item1.hide() self.Item2.hide() self.Item3.hide() self.Item4.hide() self.Item5.hide() self.Item6.hide() self.Price1.hide() self.Price2.hide() self.Price3.hide() self.Price4.hide() self.Price5.hide() self.Price6.hide()
def retranslateUi(self, UIChickenRiceStoreMenuSPECIAL): _translate = QtCore.QCoreApplication.translate UIChickenRiceStoreMenuSPECIAL.setWindowTitle( _translate("UIChickenRiceStoreMenuSPECIAL", "ChickenRiceStore's Menu")) self.NorthSpineCanteen.setText( _translate("UIChickenRiceStoreMenuSPECIAL", "North Spine Canteen")) self.ChickenRiceLabel.setText( _translate("UIChickenRiceStoreMenuSPECIAL", "The Chicken Rice Store's Menu")) self.OperatingLabel.setText( _translate( "UIChickenRiceStoreMenuSPECIAL", "Operating Hours: 9AM-8PM (MON-FRI) \n Peak Hours: 11AM - 2PM \n (Special Menu: TUE,THU)" )) #Displaying the menu's item using the methods imported from the database self.Item1.setText( _translate( "UIChickenRiceStoreMenuSPECIAL", GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 0))) self.Item2.setText( _translate( "UIChickenRiceStoreMenuSPECIAL", GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 1))) self.Item3.setText( _translate( "UIChickenRiceStoreMenuSPECIAL", GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 2))) self.Item4.setText( _translate( "UIChickenRiceStoreMenuSPECIAL", GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 3))) self.Item5.setText( _translate( "UIChickenRiceStoreMenuSPECIAL", GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 4))) self.Item6.setText( _translate( "UIChickenRiceStoreMenuSPECIAL", GetFoodORPrice("NorthSpineCanteen", "ChickenRiceStore", "AllDay", 5))) #Displaying the item's price using the methods imported from the database self.Price1.setText( _translate( "UIChickenRiceStoreMenuSPECIAL", GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 0))) self.Price2.setText( _translate( "UIChickenRiceStoreMenuSPECIAL", GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 1))) self.Price3.setText( _translate( "UIChickenRiceStoreMenuSPECIAL", GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 2))) self.Price4.setText( _translate( "UIChickenRiceStoreMenuSPECIAL", GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 3))) self.Price5.setText( _translate( "UIChickenRiceStoreMenuSPECIAL", GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 4))) self.Price6.setText( _translate( "UIChickenRiceStoreMenuSPECIAL", GetFoodORPrice("PNorthSpineCanteen", "ChickenRiceStore", "AllDay", 5))) self.InputLabel.setText( _translate("UIChickenRiceStoreMenuSPECIAL", "Input Customer in Queue:")) self.OutputLabel.setText( _translate("UIChickenRiceStoreMenuSPECIAL", "Estimated Waiting Time: ")) self.CalculateButton.setText( _translate("UIChickenRiceStoreMenuSPECIAL", "Calculate")) self.BackButton.setText( _translate("UIChickenRiceStoreMenuSPECIAL", "Back"))
def retranslateUi(self, UIDrinksStoreMenu): _translate = QtCore.QCoreApplication.translate UIDrinksStoreMenu.setWindowTitle( _translate("UIDrinksStoreMenu", "DrinksStore's Menu")) self.NorthSpineCanteen.setText( _translate("UIDrinksStoreMenu", "North Spine Canteen")) self.DrinksLabel.setText( _translate("UIDrinksStoreMenu", "Drinks Store's Menu")) self.OperatingLabel.setText( _translate("UIDrinksStoreMenu", "Operating Hours: 7AM-8PM (MON-FRI)")) #Displaying the menu's item using the methods imported from the database self.Item1.setText( _translate( "UIDrinksStoreMenu", GetFoodORPrice("NorthSpineCanteen", "DrinksStore", "AllDay", 0))) self.Item2.setText( _translate( "UIDrinksStoreMenu", GetFoodORPrice("NorthSpineCanteen", "DrinksStore", "AllDay", 1))) self.Item3.setText( _translate( "UIDrinksStoreMenu", GetFoodORPrice("NorthSpineCanteen", "DrinksStore", "AllDay", 2))) self.Item4.setText( _translate( "UIDrinksStoreMenu", GetFoodORPrice("NorthSpineCanteen", "DrinksStore", "AllDay", 3))) #Displaying the item's price using the methods imported from the database self.Price1.setText( _translate( "UIDrinksStoreMenu", GetFoodORPrice("PNorthSpineCanteen", "DrinksStore", "AllDay", 0))) self.Price2.setText( _translate( "UIDrinksStoreMenu", GetFoodORPrice("PNorthSpineCanteen", "DrinksStore", "AllDay", 1))) self.Price3.setText( _translate( "UIDrinksStoreMenu", GetFoodORPrice("PNorthSpineCanteen", "DrinksStore", "AllDay", 2))) self.Price4.setText( _translate( "UIDrinksStoreMenu", GetFoodORPrice("PNorthSpineCanteen", "DrinksStore", "AllDay", 3))) self.InputLabel.setText( _translate("UIDrinksStoreMenu", "Input Customer in Queue:")) self.OutputLabel.setText( _translate("UIDrinksStoreMenu", "Estimated Waiting Time: ")) self.CalculateButton.setText( _translate("UIDrinksStoreMenu", "Calculate")) self.BackButton.setText(_translate("UIDrinksStoreMenu", "Back"))