Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions gui/grid_mdp.py
Original file line number Diff line number Diff line change
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