You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1011 B

import sys
from PyQt5.QtWidgets import QFileDialog, QTableWidget, QPlainTextEdit
class Tools():
def __init__(self):
pass
def open_file(self, container):
''' Corresponds to 1.2
TODO Right now this is just copy&pasted. Clean this up.'''
options = QFileDialog.Options()
options |= QFileDialog.DontUseNativeDialog
fileName, _ = QFileDialog.getOpenFileName(container,"QFileDialog.getOpenFileName()", "","All Files (*);;Python Files (*.py)", options=options)
if fileName:
return fileName
pass
class Table(QTableWidget):
def __init__(self):
super().__init__()
self.setSortingEnabled(True)
self.setRowCount(4)
self.setColumnCount(4)
self.setMinimumSize(300,200)
self.setHorizontalHeaderLabels({'h', 'k', 'l'})
class Text(QPlainTextEdit,):
def __init__(self, text):
super().__init__()
self.setMinimumSize(200,200)
self.setPlainText(text)