【发布时间】:2022-06-18 00:33:37
【问题描述】:
这是销售库存的代码,我想添加所购买产品的收据。收据选项应该是文本文件格式。
from tkinter import *
import tkinter.messagebox as tkMessageBox
import sqlite3
import tkinter.ttk as ttk
root = Tk()
root.title("Simple Inventory System")
width = 1024
height = 520
screen_width = root.winfo_screenwidth()
screen_height = root.winfo_screenheight()
x = (screen_width/2) - (width/2)
y = (screen_height/2) - (height/2)
root.geometry("%dx%d+%d+%d" % (width, height, x, y))
root.resizable(0, 0)
root.config(bg="#6666ff")
#========================================VARIABLES========================================
USERNAME = StringVar()
PASSWORD = StringVar()
PRODUCT_NAME = StringVar()
PRODUCT_PRICE = IntVar()
PRODUCT_QTY = IntVar()
SEARCH = StringVar()
【问题讨论】:
-
我不明白你想做什么 - 什么意思
file format
标签: python python-3.x tkinter