diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-09-27 23:00:33 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-09-27 23:00:33 +0300 |
commit | af4b8952d08590fa11a8292e8d479a49273c3773 (patch) | |
tree | 050dfdf1e0f22ef9475ef88bbe9f84223ab36095 | |
parent | cfce43b5a24ad39c85c3713b0874d444ccc10be5 (diff) | |
download | meson-af4b8952d08590fa11a8292e8d479a49273c3773.zip meson-af4b8952d08590fa11a8292e8d479a49273c3773.tar.gz meson-af4b8952d08590fa11a8292e8d479a49273c3773.tar.bz2 |
Can clean and save, too.
-rwxr-xr-x | mesongui.py | 8 | ||||
-rw-r--r-- | mesonmain.ui | 14 |
2 files changed, 22 insertions, 0 deletions
diff --git a/mesongui.py b/mesongui.py index d998624..4983965 100755 --- a/mesongui.py +++ b/mesongui.py @@ -254,6 +254,8 @@ class MesonGui(): self.ui.compile_button.clicked.connect(self.compile) self.ui.test_button.clicked.connect(self.run_tests) self.ui.install_button.clicked.connect(self.install) + self.ui.clean_button.clicked.connect(self.clean) + self.ui.save_button.clicked.connect(self.save) self.ui.show() def fill_data(self): @@ -278,6 +280,12 @@ class MesonGui(): def install(self, foo): self.run_process(['install']) + + def clean(self, foo): + self.run_process(['clean']) + + def save(self, foo): + pickle.dump(self.coredata, open(self.coredata_file, 'wb')) if __name__ == '__main__': app = QApplication(sys.argv) diff --git a/mesonmain.ui b/mesonmain.ui index 6f2c967..c1f1f59 100644 --- a/mesonmain.ui +++ b/mesonmain.ui @@ -170,6 +170,13 @@ <item row="6" column="0" colspan="2"> <layout class="QHBoxLayout" name="horizontalLayout"> <item> + <widget class="QPushButton" name="save_button"> + <property name="text"> + <string>Save</string> + </property> + </widget> + </item> + <item> <widget class="QPushButton" name="compile_button"> <property name="text"> <string>Compile</string> @@ -190,6 +197,13 @@ </property> </widget> </item> + <item> + <widget class="QPushButton" name="clean_button"> + <property name="text"> + <string>Clean</string> + </property> + </widget> + </item> </layout> </item> </layout> |