Compare commits
2 Commits
0d4fecd578
...
3d6ab678fe
Author | SHA1 | Date |
---|---|---|
Wilson Gomez | 3d6ab678fe | |
Wilson Gomez | 9c8618207b |
|
@ -42,6 +42,7 @@ class Login(QDialog):
|
|||
self.context = {}
|
||||
params = Params(file_config)
|
||||
self.params = params.params
|
||||
self.config_file_path = params.config_file
|
||||
self.setObjectName('dialog_login')
|
||||
self.ui = Ui_Login()
|
||||
self.ui.setupUi(self)
|
||||
|
@ -147,8 +148,8 @@ class Login(QDialog):
|
|||
self.ui.label_error.show()
|
||||
|
||||
def open_config_file(self):
|
||||
config_file_path = "/home/psk/.tryton/config_pos.ini" # Reemplaza con tu ruta real
|
||||
dialog = ConfigEditDialog(config_file_path)
|
||||
# config_file_path = "/home/psk/.tryton/config_pos.ini" # Reemplaza con tu ruta real
|
||||
dialog = ConfigEditDialog(self.config_file_path)
|
||||
dialog.exec_()
|
||||
|
||||
def show_about(self):
|
||||
|
|
|
@ -11,7 +11,7 @@ from PySide6.QtWidgets import (
|
|||
QDialog, QAbstractItemView, QVBoxLayout, QHBoxLayout, QLabel, QWidget,
|
||||
QTreeView, QLineEdit, QTableView, QCompleter, QPushButton, QTextEdit
|
||||
)
|
||||
from PySide6.QtGui import QStandardItem, QStandardItemModel, QPixmap, QGuiApplication
|
||||
from PySide6.QtGui import QStandardItem, QStandardItemModel, QPixmap, QGuiApplication, QFont
|
||||
from PySide6.QtCore import Qt, Slot, QModelIndex
|
||||
|
||||
from .qt_models import get_simple_model
|
||||
|
@ -396,6 +396,9 @@ class ConfigEditDialog(QDialog):
|
|||
self.layout = QVBoxLayout()
|
||||
|
||||
self.text_edit = QTextEdit(self)
|
||||
font = QFont()
|
||||
font.setPointSize(16)
|
||||
self.text_edit.setFont(font)
|
||||
self.layout.addWidget(self.text_edit)
|
||||
|
||||
self.save_button = QPushButton("Guardar")
|
||||
|
|
Loading…
Reference in New Issue