From 1022b7c37e09a42edbc1de2f84386f1a55f00cf6 Mon Sep 17 00:00:00 2001 From: aidanfitz Date: Thu, 2 May 2024 15:19:01 -0400 Subject: [PATCH] Large system GUI bug fix --- python/pseudoBinaryPhaseDiagramGUI.py | 8 ++++---- python/thermoGui.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/python/pseudoBinaryPhaseDiagramGUI.py b/python/pseudoBinaryPhaseDiagramGUI.py index cb17a504..bc66f477 100644 --- a/python/pseudoBinaryPhaseDiagramGUI.py +++ b/python/pseudoBinaryPhaseDiagramGUI.py @@ -12,7 +12,7 @@ phaseIncludeTol = 1e-8 class CalculationWindow: - def __init__(self, parent, datafile, nElements, elements, active): + def __init__(self, parent, datafile, nElements, elements, active,scrollable=True): self.parent = parent self.datafile = datafile self.nElements = nElements @@ -20,7 +20,7 @@ def __init__(self, parent, datafile, nElements, elements, active): self.active = active if self.active: self.makeLayout() - self.sgw = sg.Window(f'Phase Diagram Setup: {os.path.basename(self.datafile)}', self.layout, location = [400,0], finalize=True) + self.sgw = sg.Window(f'Phase Diagram Setup: {os.path.basename(self.datafile)}', self.layout,resizable=True,size=(600, 800),location = [400,0], finalize=True) windowList.append(self) self.children = [] self.calculation = pseudoBinaryPhaseDiagramFunctions.diagram(self.datafile, True, True) @@ -254,8 +254,8 @@ def makeLayout(self): if (self.nElements < 8): elemLayout = [sg.Column(elem1Layout),sg.Column(elem2Layout)] else: - elemLayout = [sg.Column(elem1Layout,vertical_alignment='t', scrollable = True, vertical_scroll_only = True, expand_y = True), - sg.Column(elem2Layout,vertical_alignment='t', scrollable = True, vertical_scroll_only = True, expand_y = True)] + elemLayout = [sg.Column(elem1Layout,vertical_alignment='t', scrollable = True, vertical_scroll_only = True, size=(200, 100),expand_y = True), + sg.Column(elem2Layout,vertical_alignment='t', scrollable = True, vertical_scroll_only = True, size=(200, 100), expand_y = True)] self.layout = [tempLayout, presLayout, elemLayout, diff --git a/python/thermoGui.py b/python/thermoGui.py index 7079d7cd..6c18e6cd 100644 --- a/python/thermoGui.py +++ b/python/thermoGui.py @@ -225,8 +225,8 @@ def makeLayout(self): ] else: elementsLayout = [ - sg.Column(elem1Layout,vertical_alignment='t',scrollable = True, vertical_scroll_only = True, expand_y = True), - sg.Column(elem2Layout,vertical_alignment='t', scrollable = True, vertical_scroll_only = True, expand_y = True,key='-composition2-',visible=False) + sg.Column(elem1Layout,vertical_alignment='t',scrollable = True, vertical_scroll_only = True, size=(200,400), expand_y = True), + sg.Column(elem2Layout,vertical_alignment='t', scrollable = True, vertical_scroll_only = True, size=(200,400), expand_y = True,key='-composition2-',visible=False) ] self.layout = [tempLayout, presLayout,