Skip to content

Commit

Permalink
Python code to run UI file added
Browse files Browse the repository at this point in the history
  • Loading branch information
bytesByHarsh committed Aug 3, 2021
1 parent 2b8faf4 commit e8bb10f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions PyQt/runUI.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from PyQt5 import QtWidgets, uic
import sys


class NetworkUi(QtWidgets.QMainWindow):
def __init__(self):
super(NetworkUi,self).__init__() #Call the inherited classes __init__ method
uic.loadUi('test.ui', self)
self.show()

app = QtWidgets.QApplication(sys.argv)
window = NetworkUi()
app.exec_()

0 comments on commit e8bb10f

Please sign in to comment.