Skip to content

Commit

Permalink
Change default window size
Browse files Browse the repository at this point in the history
  • Loading branch information
magnushacker committed Nov 12, 2019
1 parent 4f64df8 commit cc3aadf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/main/python/gcodediff.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Form implementation generated from reading ui file 'c:\Users\magnush\Documents\GitHub\gcodediff\src\main\python\gcodediff.ui',
# licensing of 'c:\Users\magnush\Documents\GitHub\gcodediff\src\main\python\gcodediff.ui' applies.
#
# Created: Tue Nov 12 23:25:52 2019
# Created: Tue Nov 12 23:48:49 2019
# by: pyside2-uic running on PySide2 5.12.0
#
# WARNING! All changes made in this file will be lost!
Expand All @@ -13,7 +13,7 @@
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(760, 479)
MainWindow.resize(600, 400)
MainWindow.setBaseSize(QtCore.QSize(600, 400))
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
Expand All @@ -34,7 +34,7 @@ def setupUi(self, MainWindow):
self.gridLayout.addWidget(self.dataView, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 760, 21))
self.menubar.setGeometry(QtCore.QRect(0, 0, 600, 21))
self.menubar.setObjectName("menubar")
self.menuFile = QtWidgets.QMenu(self.menubar)
self.menuFile.setObjectName("menuFile")
Expand Down
6 changes: 3 additions & 3 deletions src/main/python/gcodediff.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>760</width>
<height>479</height>
<width>600</width>
<height>400</height>
</rect>
</property>
<property name="baseSize">
Expand Down Expand Up @@ -62,7 +62,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>760</width>
<width>600</width>
<height>21</height>
</rect>
</property>
Expand Down
1 change: 0 additions & 1 deletion src/main/python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def contextMenuEvent(self, event):
appctxt = ApplicationContext() # 1. Instantiate ApplicationContext

window = MainWindow()
window.resize(250, 150)
window.show()

exit_code = appctxt.app.exec_() # 2. Invoke appctxt.app.exec_()
Expand Down

0 comments on commit cc3aadf

Please sign in to comment.