diff --git a/README.md b/README.md index 300d60a9..b010c55d 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If WSL fails to start properly after reboot, you may need to create virtual disk When Ubuntu app is successfully installed, run the following. ```bash -sudo apt-get update +sudo apt update && sudo apt upgrade ``` ```bash sudo apt install build-essential gfortran liblapack-dev git diff --git a/python/pseudoBinaryPhaseDiagramGUI.py b/python/pseudoBinaryPhaseDiagramGUI.py index bc66f477..74fe05fd 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,scrollable=True): + 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,scrollable=True self.active = active if self.active: self.makeLayout() - 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) + 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, size=(200, 100),expand_y = True), - sg.Column(elem2Layout,vertical_alignment='t', scrollable = True, vertical_scroll_only = True, size=(200, 100), 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,