Skip to content

Commit

Permalink
GUI.pyw: force Disable checks for unknown units when Skip core direct…
Browse files Browse the repository at this point in the history
…ory is enabled
  • Loading branch information
Elvish-Hunter authored and Vultraz committed Jan 23, 2015
1 parent 2b12de7 commit 5c4f201
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion data/tools/GUI.pyw
Expand Up @@ -476,14 +476,22 @@ class WmllintTab(Frame):
self.skip_variable=BooleanVar()
self.skip_core=Checkbutton(self.options_frame,
text="Skip core directory",
variable=self.skip_variable)
variable=self.skip_variable,
command=self.skip_core_dir_callback)
self.skip_core.grid(row=5,
column=0,
sticky=W,
padx=10)
self.columnconfigure(0,weight=1)
self.columnconfigure(1,weight=1)
self.columnconfigure(2,weight=1)
def skip_core_dir_callback(self):
if self.skip_variable.get():
self.known_variable.set(True)
self.known_check.configure(state=DISABLED)
else:
self.known_variable.set(False)
self.known_check.configure(state=NORMAL)

class WmlscopeTab(Frame):
def __init__(self,parent):
Expand Down

0 comments on commit 5c4f201

Please sign in to comment.