aboutsummaryrefslogtreecommitdiff
path: root/mesongui.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-10-04 02:18:26 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-10-04 02:18:26 +0300
commit4dff3f9fb3efb1f9c32484cbdc2f0668de782913 (patch)
tree8c563a58788d285e0d9cdfab1d240cdf226287c3 /mesongui.py
parentc02009a6989710714cc0e2becc9cad11d4b0381d (diff)
downloadmeson-4dff3f9fb3efb1f9c32484cbdc2f0668de782913.zip
meson-4dff3f9fb3efb1f9c32484cbdc2f0668de782913.tar.gz
meson-4dff3f9fb3efb1f9c32484cbdc2f0668de782913.tar.bz2
Refactored option classes to mesonlib.
Diffstat (limited to 'mesongui.py')
-rwxr-xr-xmesongui.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/mesongui.py b/mesongui.py
index 10a84f7..bdd44bb 100755
--- a/mesongui.py
+++ b/mesongui.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
-# Copyright 2013 The Meson development team
+# Copyright 2013-2015 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -15,7 +15,7 @@
# limitations under the License.
import sys, os, pickle, time, shutil
-import build, coredata, environment, optinterpreter
+import build, coredata, environment, mesonlib
from PyQt5 import uic
from PyQt5.QtWidgets import QApplication, QMainWindow, QHeaderView
from PyQt5.QtWidgets import QComboBox, QCheckBox
@@ -272,14 +272,14 @@ class OptionForm:
self.opt_widgets = []
for key in keys:
opt = options[key]
- if isinstance(opt, optinterpreter.UserStringOption):
+ if isinstance(opt, mesonlib.UserStringOption):
w = PyQt5.QtWidgets.QLineEdit(opt.value)
w.textChanged.connect(self.user_option_changed)
- elif isinstance(opt, optinterpreter.UserBooleanOption):
+ elif isinstance(opt, mesonlib.UserBooleanOption):
w = QCheckBox('')
w.setChecked(opt.value)
w.stateChanged.connect(self.user_option_changed)
- elif isinstance(opt, optinterpreter.UserComboOption):
+ elif isinstance(opt, mesonlib.UserComboOption):
w = QComboBox()
for i in opt.choices:
w.addItem(i)