Skip to content

Commit 299982c

Browse files
committed
Extra config validation
1 parent fcfd3cd commit 299982c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

textext/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ def effect(self):
282282

283283
from .asktext import load_asktext_tk, load_asktext_gtk
284284
toolkit = gui_config.get("toolkit", None)
285+
if "use_gtk_source" in gui_config and toolkit != "gtk":
286+
raise RuntimeError("invalid config, use_gtk_source cannot be specified when toolkit != gtk")
285287
if toolkit == "tk":
286288
AskTextImpl = load_asktext_tk()
287289
elif toolkit == "gtk":

0 commit comments

Comments
 (0)