嘿,您可以使用該項目的指南和代碼來為餐廳或任何商店創建自己的賬單計算器,這很好:)不是很好。
這是一個Python程序,可讓您使用TKINTER庫在Python中創建的Nice GUI(窗口屏幕)中計算餐費的總(小計 +服務費 + GST),該賬單允許您設計圖形界面。
首先要安裝此項目: -
TKINTER模塊
python3
將源代碼保存在目錄中
運行python3 login.py
在此之後,窗口將像這樣彈出: -
https://user-images.githubusercontent.com/20949109/31057298-12BE5046-A6FE-11E7-85BA-910F3E49EEDB.PNG
然後,您需要在用戶名和密碼類型5657中鍵入Shantanu。
之後,另一個窗口將彈出這樣的顯示: -
https://user-images.githubusercontent.com/20949109/31057301-12EA7CC0-A6FE-11E7-8779-9825C29BAB8B.PNG
無論亮度模式都不會看到:'),我不好後悔! ,但是現在您有兩個選擇要么去Bill或更改價格:
賬單 :-
Clicking on bill (Press Here button) a window will pop up like this
https://user-images.githubusercontent.com/20949109/31057299-12C3839A-A6FE-11E7-93EE-C0CFD23D0912.PNG
Here you can enter everthing (like quantity of fries , samosa etc ) and according to quantity everything will be printed pressing total button.
every Button have theirs usual function as their name suggests.
On right side calculate is there to check or calculate something.
更改價格:
如果您按了此按鈕,則會像這樣彈出一個窗口: -
https://user-images.githubusercontent.com/20949109/31057295-12b3a236-a6fe-11e7-9a14-e390b4a67169.png
現在,您可以更改菜單項的價格,以防萬一。