minor fix test printer
This commit is contained in:
parent
21fa12d349
commit
3d34d47736
|
@ -10,7 +10,7 @@ from .commons.dialogs import HelpDialog, QuickDialog
|
|||
from PySide6.QtCore import Qt
|
||||
from PySide6.QtWidgets import (
|
||||
QCheckBox, QTextEdit, QVBoxLayout, QGridLayout, QLineEdit, QPlainTextEdit,
|
||||
QScrollArea, QHBoxLayout, QDoubleSpinBox, QLabel, QWidget, QDialog
|
||||
QScrollArea, QHBoxLayout, QDoubleSpinBox, QLabel, QWidget
|
||||
)
|
||||
|
||||
from .proxy import Report
|
||||
|
@ -29,7 +29,6 @@ from app.commons.model import TableEdit
|
|||
from .commons.custom_button import CustomButton
|
||||
from .tools import get_icon, get_screen
|
||||
from .reporting import Receipt
|
||||
from .reporting import Receipt
|
||||
|
||||
__all__ = [
|
||||
'ControlPanel', 'SearchSale', 'SearchParty', 'SearchProduct', 'Position',
|
||||
|
@ -1798,7 +1797,8 @@ class DialogTestPrinter(QuickDialog):
|
|||
super(DialogTestPrinter, self).exec_()
|
||||
|
||||
def clear(self):
|
||||
self.model.clearData()
|
||||
if self.parent.environment == 'restaurant':
|
||||
self.model.clearData()
|
||||
self.input_server.setText("")
|
||||
self.combo_interface.set_from_id("")
|
||||
self.combo_row_characters.set_from_id("")
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from app.reporting import Receipt
|
||||
import traceback
|
||||
import time
|
||||
|
||||
|
||||
|
@ -71,9 +70,8 @@ if __name__ == '__main__':
|
|||
receipt = Receipt(ctx_printing)
|
||||
# try:
|
||||
receipt.config_printer(printer_test)
|
||||
for i in range(20):
|
||||
receipt.test_printer()
|
||||
time.sleep(1)
|
||||
receipt.test_printer()
|
||||
time.sleep(1)
|
||||
# receipt._printer.close()
|
||||
# print('impresion numero', i)
|
||||
# except :
|
||||
|
|
Loading…
Reference in New Issue