Skip to content

Commit

Permalink
Tab and space fixed in line 986
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhengLinLei committed Feb 26, 2022
1 parent 3432b4c commit 1a35e7b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,13 +980,14 @@ def closeSecond_window():
self.second_window.protocol("WM_DELETE_WINDOW", closeSecond_window)

def printOption(option=True):
if option:
PrintApp.printReceipt()
else:
self.printBillEmpty(id)

closeSecond_window()
if option:
PrintApp.printReceipt()

else:
self.printBillEmpty(id)

closeSecond_window()

tk.Label(self.second_window, text = '打印方式', anchor = tk.CENTER, font = ('', 18, 'bold')).grid(row = 0, column = 0, columnspan = 2, sticky = tk.W + tk.E, pady = (10, 0))
#Print
receiptPrint = tk.Button(self.second_window, text = '打印小票', padx = 15, pady = 15, font = ('times', 12, 'bold'), command = lambda : printOption(True), cursor = 'hand2')
Expand Down

0 comments on commit 1a35e7b

Please sign in to comment.