Subject | Hash | Author | Date (UTC) |
---|---|---|---|
qt_gui: add add_random_points() method | 1c1819745a854889b6d3ae9e62e9735441523ec9 | I am | 2021-10-31 02:23:14 |
qt_gui: rearrange functions within qt_gui, add file menu | d267357cdbfe805db5ef358e6e1acb24c88b5638 | I am | 2021-10-30 21:02:17 |
whitebox: implement run_sample() | 576ca55be17e6f14500e70d97536e0b53a57f029 | I am | 2021-10-30 21:01:07 |
qt_gui: implement dicebox setup | 09a7074b12e46d0554b2c4f73b6a8b672d0b4428 | I am | 2021-10-30 15:12:33 |
schemes: small fix | 934b2269e5b08930e23fd67df07234251b123153 | I am | 2021-10-30 15:11:39 |
qt_gui: prepare setup Goal setup dialog | e53197a0b5d5a994dddbcbfb02042c5383f79ec7 | Aleksei Gerasimov | 2021-10-29 16:47:09 |
schemes: add conventional functions for tn schemes | 9a32048dc342604291f1b7d17efc71be755d3810 | Aleksei Gerasimov | 2021-10-29 16:45:24 |
reader: make Reader callable | 5cdd55d11ff846f9116fb0e00f54a7830ef3c276 | Aleksei Gerasimov | 2021-10-27 16:30:05 |
make WellMet standalone runnable | 1fe983d633d7194a64cf6928044082936790ce4d | Aleksei Gerasimov | 2021-10-27 16:21:51 |
qt_gui: prepare qt_box_functions module | c500fcd20e7b296262a0566d04aabb7bd1ae9cfa | Aleksei Gerasimov | 2021-10-25 15:39:56 |
shapeshare: keep empty file to reserve the name | b11f17e13dafc3d58db5ad9f101c0126e0bfd871 | Aleksei Gerasimov | 2021-10-21 14:48:03 |
delete sball_old :( | 792d9d83fde0f38e7396162788ec8aa922b0fd0c | Aleksei Gerasimov | 2021-10-21 14:47:06 |
whitebox: add Z_sum, Z_prod, small clean up | faec934bb03c20906c9091fc196cc0daf824b54f | Aleksei Gerasimov | 2021-10-21 13:48:07 |
g_models: add neverfall, add sign parameter to Z_prod | 129abf19da15a5dfcb5a02614d92a233f914d146 | Aleksei Gerasimov | 2021-10-21 13:45:47 |
mplot: add one more qhull plot | 32e7003aac4887bd83bfff640093f755b4f6cffe | I am | 2021-09-14 11:42:56 |
mplot: add ESREL-related figures | cba805ba8e7f3c2337027eec6e760aa9234dfdc2 | I am | 2021-09-12 10:17:21 |
mplot.mart: allow set up fill keyword | cf94410513091b5f96e0e17e8de2f7a3feee1a03 | I am | 2021-09-12 10:15:55 |
mplot: add qhull&density figure | a36fb606e9f425742925aa4953c0ae07d6b51409 | I am | 2021-09-10 15:17:58 |
qt_plot: send sliced sample box to matplotlib | fda486b90c56e77bc88b38d0d94d08a751277cfb | I am | 2021-09-10 15:01:55 |
mplot: include Axes3d patch | 8f5dc7f04b6c804b5ec169ec7b744a8618b3bb69 | I am | 2021-09-10 11:05:20 |
File | Lines added | Lines deleted |
---|---|---|
qt_gui/qt_gui.py | 15 | 2 |
File qt_gui/qt_gui.py changed (mode: 100644) (index 6de39b3..833fe65) | |||
... | ... | class QtGuiWindow(QtGui.QMainWindow): | |
97 | 97 | self.view = self.bar.addMenu("View") | self.view = self.bar.addMenu("View") |
98 | 98 | ||
99 | 99 | self.graph_menu = self.bar.addMenu("Box") | self.graph_menu = self.bar.addMenu("Box") |
100 | self.add_random_points_action = QtGui.QAction("Add random points", self) | ||
101 | self.add_random_points_action.triggered.connect(self.add_random_points) | ||
102 | self.graph_menu.addAction(self.add_random_points_action) | ||
100 | 103 | self.batch_run_action = QtGui.QAction("Batch run", self) | self.batch_run_action = QtGui.QAction("Batch run", self) |
101 | 104 | self.batch_run_action.triggered.connect(self.batch_run) | self.batch_run_action.triggered.connect(self.batch_run) |
102 | 105 | self.graph_menu.addAction(self.batch_run_action) | self.graph_menu.addAction(self.batch_run_action) |
... | ... | class QtGuiWindow(QtGui.QMainWindow): | |
481 | 484 | self.continue_label.hide() | self.continue_label.hide() |
482 | 485 | self.statusBar.showMessage(status) | self.statusBar.showMessage(status) |
483 | 486 | ||
487 | def add_random_points(self): | ||
488 | ns, ok = QtGui.QInputDialog.getInt( | ||
489 | self,"Add random points","number", value=1, min=1) | ||
490 | if ok: | ||
491 | wt = self.sample_box | ||
492 | nodes = wt.f_model(ns) | ||
493 | wt.run_sample(nodes) | ||
494 | self.box_runned.emit() | ||
484 | 495 | ||
485 | 496 | def batch_run(self): | def batch_run(self): |
486 | 497 | #pg.QtGui.QInputDialog.getInt( | #pg.QtGui.QInputDialog.getInt( |
487 | runs, ok = QtGui.QInputDialog.getInt(self,"Batch run","runs") | ||
498 | runs, ok = QtGui.QInputDialog.getInt( | ||
499 | self,"Batch run","runs", value=100, min=1) | ||
488 | 500 | ||
489 | 501 | if ok: | if ok: |
490 | with pg.ProgressDialog("Running..", 0, runs, cancelText='Stop', busyCursor=True) as dlg: | ||
502 | with pg.ProgressDialog("Running..", 0, runs,\ | ||
503 | cancelText='Stop', busyCursor=True) as dlg: | ||
491 | 504 | for i in range(runs): | for i in range(runs): |
492 | 505 | # keep the GUI responsive :) | # keep the GUI responsive :) |
493 | 506 | self.app.processEvents() | self.app.processEvents() |