@@ -221,7 +221,7 @@ def setUIMenuBar(self):
221
221
222
222
def setUIMainWindow (self ):
223
223
self .setWindowTitle ("Slice" )
224
- self .resize (850 , 950 )
224
+ # self.resize(850, 950)
225
225
226
226
def setUIMainLayout (self ):
227
227
self .main_layout = QVBoxLayout ()
@@ -307,6 +307,7 @@ def setUIAxisValueDataEntry(self):
307
307
axisEditGroupBox .setLayout (QVBoxLayout ())
308
308
axisEditGroupBox .layout ().addWidget (self .fvar_table_view )
309
309
axisEditGroupBox .setMinimumHeight (205 )
310
+ axisEditGroupBox .setMaximumHeight (350 )
310
311
311
312
ibmplex_id = QFontDatabase .addApplicationFont (":/font/IBMPlexMono-Regular.ttf" )
312
313
font_family = QFontDatabase .applicationFontFamilies (ibmplex_id )[0 ]
@@ -441,9 +442,10 @@ def addStretch(self):
441
442
self .main_layout .addStretch ()
442
443
443
444
def setWindowCenterPosition (self ):
445
+ self .setGeometry (0 , 0 , 850 , 900 )
444
446
rect = self .frameGeometry ()
445
- centerLoc = QDesktopWidget ().availableGeometry ().center ()
446
- rect .moveCenter (centerLoc )
447
+ centerCoord = QDesktopWidget ().availableGeometry ().center ()
448
+ rect .moveCenter (centerCoord )
447
449
self .move (rect .topLeft ())
448
450
449
451
#
0 commit comments