Skip to content

Commit

Permalink
Large system GUI bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanfitz committed May 2, 2024
1 parent 491c864 commit 1022b7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions python/pseudoBinaryPhaseDiagramGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
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
self.elements = elements
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)
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions python/thermoGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1022b7c

Please sign in to comment.