Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closing the old cell window #996

Merged
merged 1 commit into from Mar 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions gui/grid_mdp.py
Expand Up @@ -41,6 +41,7 @@
green8 = '#008080'
green4 = '#004040'

cell_window_mantainer=None

def extents(f):
''' adjusts axis markers for heatmap '''
Expand Down Expand Up @@ -251,7 +252,12 @@ def initialize_widget_disability_checks(_width, _height, gridmdp, terminals, lab
def dialogbox(i, j, gridmdp, terminals, buttons, _height):
''' creates dialogbox for each cell '''

global cell_window_mantainer
if(cell_window_mantainer!=None):
cell_window_mantainer.destroy()

dialog = tk.Toplevel()
cell_window_mantainer=dialog
dialog.wm_title(f'{_height - i - 1}, {j}')

container = tk.Frame(dialog)
Expand Down