Can clean and save, too.

pull/15/head
Jussi Pakkanen 11 years ago
parent cfce43b5a2
commit af4b8952d0
  1. 8
      mesongui.py
  2. 14
      mesonmain.ui

@ -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)

@ -169,6 +169,13 @@
</item>
<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">
@ -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>

Loading…
Cancel
Save