Skip to content

Commit

Permalink
WIP Open Help Screens relative to parent.
Browse files Browse the repository at this point in the history
  • Loading branch information
TCallaghan2 committed Jun 5, 2024
1 parent 41c179c commit ecda191
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion PythonScripts/GUI/GeoSAM/FishMortBySpecAcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ def pop_up(self):
popup = tk.Toplevel()
nrows = 43
ncols = 80
popup.geometry(str(int(ncols*8.5))+"x"+str(nrows*18))
parentPosn = '+'+str(self.winfo_rootx()+50)+'+'+str(self.winfo_rooty()+50)
popup.geometry(str(int(ncols*8.5))+"x"+str(nrows*18)+parentPosn)
T = tk.Text(popup, width=ncols, height=nrows, padx=10)
T.insert('end', about)
T.config(state='disabled')
Expand Down
3 changes: 2 additions & 1 deletion PythonScripts/GUI/GeoSAM/GeoSams.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@ def pop_up(self):
popup = tk.Toplevel()
nrows = 31
ncols = 80
popup.geometry(str(int(ncols*8.5))+"x"+str(nrows*18))
parentPosn = '+'+str(self.winfo_rootx()+50)+'+'+str(self.winfo_rooty()+50)
popup.geometry(str(int(ncols*8.5))+"x"+str(nrows*18)+parentPosn)
T = tk.Text(popup, width=ncols, height=nrows, padx=10)
T.insert('end', about)
T.config(state='disabled')
Expand Down
3 changes: 2 additions & 1 deletion PythonScripts/GUI/GeoSAM/GrowthFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ def pop_up(self):
popup = tk.Toplevel()
nrows = 37
ncols = 80
popup.geometry(str(int(ncols*8.5))+"x"+str(nrows*18))
parentPosn = '+'+str(self.winfo_rootx()+50)+'+'+str(self.winfo_rooty()+50)
popup.geometry(str(int(ncols*8.5))+"x"+str(nrows*18)+parentPosn)
T = tk.Text(popup, width=ncols, height=nrows, padx=10)
T.insert('end', about)
T.config(state='disabled')
Expand Down
3 changes: 2 additions & 1 deletion PythonScripts/GUI/GeoSAM/InterpolationFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,8 @@ def pop_up(self):
popup = tk.Toplevel()
nrows = 30
ncols = 80
popup.geometry(str(int(ncols*8.5))+"x"+str(nrows*18))
parentPosn = '+'+str(self.winfo_rootx()+50)+'+'+str(self.winfo_rooty()+50)
popup.geometry(str(int(ncols*8.5))+"x"+str(nrows*18)+parentPosn)
T = tk.Text(popup, width=ncols, height=nrows, padx=10)
T.insert('end', about)
T.config(state='disabled')
Expand Down
3 changes: 2 additions & 1 deletion PythonScripts/GUI/GeoSAM/MainInputFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ def pop_up(self):
popup = tk.Toplevel()
nrows = 24
ncols = 80
popup.geometry(str(int(ncols*8.5))+"x"+str(nrows*18))
parentPosn = '+'+str(self.winfo_rootx()+50)+'+'+str(self.winfo_rooty()+50)
popup.geometry(str(int(ncols*8.5))+"x"+str(nrows*18)+parentPosn)
T = tk.Text(popup, width=ncols, height=nrows, padx=10)
T.insert('end', about)
T.config(state='disabled')
Expand Down
3 changes: 2 additions & 1 deletion PythonScripts/GUI/GeoSAM/SortByAreaFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ def pop_up(self):
popup = tk.Toplevel()
nrows = 41
ncols = 80
popup.geometry(str(int(ncols*8.5))+"x"+str(nrows*18))
parentPosn = '+'+str(self.winfo_rootx()+50)+'+'+str(self.winfo_rooty()+50)
popup.geometry(str(int(ncols*8.5))+"x"+str(nrows*18)+parentPosn)
T = tk.Text(popup, width=ncols, height=nrows, padx=10)
T.insert('end', about)
T.config(state='disabled')
Expand Down
3 changes: 2 additions & 1 deletion PythonScripts/GUI/GeoSAM/SpecialAreaFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def pop_up(self):
popup = tk.Toplevel()
nrows = 42
ncols = 80
popup.geometry(str(int(ncols*8.5))+"x"+str(nrows*18))
parentPosn = '+'+str(self.winfo_rootx()+50)+'+'+str(self.winfo_rooty()+50)
popup.geometry(str(int(ncols*8.5))+"x"+str(nrows*18)+parentPosn)
T = tk.Text(popup, width=ncols, height=nrows, padx=10)
T.insert('end', about)
T.config(state='disabled')
Expand Down

0 comments on commit ecda191

Please sign in to comment.