嘿,您可以使用该项目的指南和代码来为餐厅或任何商店创建自己的账单计算器,这很好:)不是很好。
这是一个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
现在,您可以更改菜单项的价格,以防万一。