from PyQt5 import QtCore, QtWidgets, uic
from PyQt5.QtCore import Qt
from PyQt5.QtGui import *
#define class
def __init__(self, parent=None):
super(Bathyui, self).__init__(parent)
uic.loadUi('Open_File_UWN_Model.ui', self)
#connect to widget
#populate with dataframe
self.table.setModel(file_reader)
from PyQt5 import QtCore, QtWidgets, uic
from PyQt5.QtCore import Qt
from PyQt5.QtGui import *
from PyQt5.QtWidgets import (qApp, QComboBox, QMainWindow, QApplication, QMessageBox, QFileDialog)
#define class
class Bathyui(QtWidgets.QDialog):
def __init__(self, parent=None):
super(Bathyui, self).__init__(parent)
uic.loadUi('Open_File_UWN_Model.ui', self)
#connect to widget
self.table = QtWidgets.QTableView(self.tableView)
#populate with dataframe
self.table.setModel(file_reader)
To copy to clipboard, switch view to plain text mode
Bookmarks