【问题标题】:How to insert print receipt in this sales inventory system如何在此销售库存系统中插入打印收据
【发布时间】: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


猜你喜欢
  • 2011-12-24
  • 1970-01-01
  • 2019-01-09
  • 2014-10-23
  • 2015-09-24
  • 2012-12-15
  • 2017-11-28
  • 1970-01-01
  • 2021-03-23
相关资源
最近更新 更多