digsim-logic-simulator 0.14.0__py3-none-any.whl → 0.15.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of digsim-logic-simulator might be problematic. Click here for more details.
- digsim/app/gui/_main_window.py +11 -4
- digsim/app/gui_objects/_component_port_item.py +2 -0
- digsim/app/model/_model.py +6 -0
- {digsim_logic_simulator-0.14.0.dist-info → digsim_logic_simulator-0.15.0.dist-info}/METADATA +1 -1
- {digsim_logic_simulator-0.14.0.dist-info → digsim_logic_simulator-0.15.0.dist-info}/RECORD +8 -8
- {digsim_logic_simulator-0.14.0.dist-info → digsim_logic_simulator-0.15.0.dist-info}/WHEEL +0 -0
- {digsim_logic_simulator-0.14.0.dist-info → digsim_logic_simulator-0.15.0.dist-info}/licenses/LICENSE.md +0 -0
- {digsim_logic_simulator-0.14.0.dist-info → digsim_logic_simulator-0.15.0.dist-info}/top_level.txt +0 -0
digsim/app/gui/_main_window.py
CHANGED
|
@@ -111,16 +111,23 @@ class MainWindow(QMainWindow):
|
|
|
111
111
|
if event.isAutoRepeat():
|
|
112
112
|
event.accept()
|
|
113
113
|
return
|
|
114
|
+
|
|
115
|
+
if event.key() == Qt.Key_Space:
|
|
116
|
+
if self._app_model.is_running:
|
|
117
|
+
self._app_model.model_stop()
|
|
118
|
+
else:
|
|
119
|
+
self._app_model.model_start()
|
|
120
|
+
event.accept()
|
|
121
|
+
return
|
|
122
|
+
|
|
114
123
|
if self._app_model.is_running:
|
|
115
124
|
self._app_model.shortcuts.press(event.key())
|
|
116
125
|
event.accept()
|
|
117
126
|
return
|
|
118
127
|
|
|
119
128
|
if event.key() == Qt.Key_Escape:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
self._app_model.sig_repaint.emit()
|
|
123
|
-
event.accept()
|
|
129
|
+
self._app_model.model_abort_wire()
|
|
130
|
+
event.accept()
|
|
124
131
|
|
|
125
132
|
def keyReleaseEvent(self, event):
|
|
126
133
|
"""QT event callback function"""
|
|
@@ -28,6 +28,8 @@ class PortGraphicsItem(QGraphicsRectItem):
|
|
|
28
28
|
|
|
29
29
|
def mousePressEvent(self, _):
|
|
30
30
|
"""QT event callback function"""
|
|
31
|
+
if self._app_model.is_running:
|
|
32
|
+
return
|
|
31
33
|
if self._app_model.objects.new_wire.ongoing():
|
|
32
34
|
try:
|
|
33
35
|
self._app_model.objects.new_wire.end(self._port.parent(), self._port.name())
|
digsim/app/model/_model.py
CHANGED
|
@@ -88,6 +88,7 @@ class AppModel(QThread):
|
|
|
88
88
|
|
|
89
89
|
def model_start(self):
|
|
90
90
|
"""Start model simulation thread"""
|
|
91
|
+
self.model_abort_wire()
|
|
91
92
|
self._started = True
|
|
92
93
|
self._single_step = False
|
|
93
94
|
self.start()
|
|
@@ -119,6 +120,11 @@ class AppModel(QThread):
|
|
|
119
120
|
"""Add medel events (functions) from the GUI"""
|
|
120
121
|
self._gui_event_queue.put(func)
|
|
121
122
|
|
|
123
|
+
def model_abort_wire(self):
|
|
124
|
+
if self._model_objects.new_wire.ongoing():
|
|
125
|
+
self._model_objects.new_wire.abort()
|
|
126
|
+
self.sig_repaint.emit()
|
|
127
|
+
|
|
122
128
|
def run(self):
|
|
123
129
|
"""Simulation thread run function"""
|
|
124
130
|
start_time = time.perf_counter()
|
|
@@ -3,7 +3,7 @@ digsim/app/__main__.py,sha256=0Cw_kzox6oDRO2cOS4Q6_g6TlThpUTfJNnaAfaJXxsg,1516
|
|
|
3
3
|
digsim/app/gui/__init__.py,sha256=jLV8w5SIh4PadWA3UDnLk2strI3_xEIfQEt5Sb62YUc,170
|
|
4
4
|
digsim/app/gui/_circuit_area.py,sha256=zwQ2tVujriY2DdQI4Jy7anebh0Ul5od99HDDphZQTdo,16590
|
|
5
5
|
digsim/app/gui/_component_selection.py,sha256=LTVSA3xd85jqULn6GfrBnmfDeP_iYlj4_UjKUd_4FHQ,6590
|
|
6
|
-
digsim/app/gui/_main_window.py,sha256=
|
|
6
|
+
digsim/app/gui/_main_window.py,sha256=y2PsvP7sY5x0Nrj_MlqyfJdKQ-QWKZiLSVPuWvnDyzk,5391
|
|
7
7
|
digsim/app/gui/_top_bar.py,sha256=JSP-aF5oFZ-1uHA5SNyRThpHLs9YVnTPA65h2EhxCN4,13067
|
|
8
8
|
digsim/app/gui/_utils.py,sha256=GMPIucfMQhXGwX91CGmeoRpxS8qwOfDLUI76fPJWk0I,665
|
|
9
9
|
digsim/app/gui/_warning_dialog.py,sha256=N9G2wyQTyiqMnTtbExMzHgdbCBA0epfhNWY4GVF6xH8,1496
|
|
@@ -12,7 +12,7 @@ digsim/app/gui_objects/_bus_bit_object.py,sha256=qKZg1SLds9LNq3DUTR7dtM_3gosrfhE
|
|
|
12
12
|
digsim/app/gui_objects/_buzzer_object.py,sha256=f-Kgrf5r5iUZMHXy2kmzxDDA0ROMPAPNJbguMSrdEu4,3294
|
|
13
13
|
digsim/app/gui_objects/_component_context_menu.py,sha256=pPhvNYO5lR6J61_NKJt5HPBRiypSuMAIcbcWoZU4DIA,2824
|
|
14
14
|
digsim/app/gui_objects/_component_object.py,sha256=ntD34AEqaJovzDYMrlxOrdyjqprPU_urWUbznnBQNTM,13323
|
|
15
|
-
digsim/app/gui_objects/_component_port_item.py,sha256=
|
|
15
|
+
digsim/app/gui_objects/_component_port_item.py,sha256=ZbnQAX_BOTF3rxDQKKyX-wB29sHoF3QpoHv5010Cu8c,2104
|
|
16
16
|
digsim/app/gui_objects/_dip_switch_object.py,sha256=8-YJdkcg0UXxbkxmyq4Ep4ZezZOkxCw6tfQ5Yq3mOlE,3636
|
|
17
17
|
digsim/app/gui_objects/_gui_note_object.py,sha256=qPB0OBq6jxKlqH8yoV2wchDFqrJdjB3AP993hDj1Kcs,2592
|
|
18
18
|
digsim/app/gui_objects/_gui_object_factory.py,sha256=T9TeQVh-DHbOwnn2BtwI0gxnubgp0vUmT36O0b1grLk,2466
|
|
@@ -49,7 +49,7 @@ digsim/app/gui_objects/images/YOSYS.png,sha256=etTO9jadU0amxQG7ySRjD6fME4HjrEEqX
|
|
|
49
49
|
digsim/app/gui_objects/images/ZERO.png,sha256=hXnZgEVO3T_zN5CiFhu6cIXr19LAu6SdvX-sIOq06E4,3459
|
|
50
50
|
digsim/app/images/app_icon.png,sha256=OfPoYA4o4Af79DTqQxSNLca0FdXRHEYteBK-xCQFEAw,16041
|
|
51
51
|
digsim/app/model/__init__.py,sha256=v7NoGYYBXUiDPwL_lDalLP0tgkIq_F5UCFUm-hVBy4U,164
|
|
52
|
-
digsim/app/model/_model.py,sha256=
|
|
52
|
+
digsim/app/model/_model.py,sha256=4bNiDWPUcppQBRsxsF_nkxe9pGuJ-NG9lBsiIb60NzM,6721
|
|
53
53
|
digsim/app/model/_model_components.py,sha256=nWIQ5Bgt61UF7pzqnBSjLW35nat_pQUIMiH-bLDHlk0,6262
|
|
54
54
|
digsim/app/model/_model_new_wire.py,sha256=cLzzM813638suuBf2BRe6rrqkyVKwLMqWBwo3bI0PYk,1873
|
|
55
55
|
digsim/app/model/_model_objects.py,sha256=b_0oTBj2S_ZHZ0FBC9Imv7eHpkOgLmuMZ-4HWrvSadY,5136
|
|
@@ -98,8 +98,8 @@ digsim/synth/__main__.py,sha256=M8lMBUO6oHENospJCj43Ed40w0bX0_E6yL-_O8g9LWg,2178
|
|
|
98
98
|
digsim/synth/_synthesis.py,sha256=g2zw0M3E6xiYLwY2WOKi9-uJ5YtNeVwCpFviuXfhUHk,5197
|
|
99
99
|
digsim/utils/__init__.py,sha256=sUWzEcR3aTo8uDqi9oMDs04XLa-uUXFSgLuhkbSvaNs,196
|
|
100
100
|
digsim/utils/_yosys_netlist.py,sha256=uNrTINGm8J_66Cgvgk1ItKyk7u65YfUl7av6ASBWVl0,4036
|
|
101
|
-
digsim_logic_simulator-0.
|
|
102
|
-
digsim_logic_simulator-0.
|
|
103
|
-
digsim_logic_simulator-0.
|
|
104
|
-
digsim_logic_simulator-0.
|
|
105
|
-
digsim_logic_simulator-0.
|
|
101
|
+
digsim_logic_simulator-0.15.0.dist-info/licenses/LICENSE.md,sha256=FrvohZfyfpH4xrvKdXiQ5hD7dUB7w4DcsRA3p-pOmLw,1693
|
|
102
|
+
digsim_logic_simulator-0.15.0.dist-info/METADATA,sha256=dXDjk15t4ygsND-RUByU1kLIDAb62LjNlzaBZQsMnOE,4510
|
|
103
|
+
digsim_logic_simulator-0.15.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
104
|
+
digsim_logic_simulator-0.15.0.dist-info/top_level.txt,sha256=qpCMzQKADZHVqZIoQgFrv3qJ3u7PPU73gTCXQglqLa8,7
|
|
105
|
+
digsim_logic_simulator-0.15.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{digsim_logic_simulator-0.14.0.dist-info → digsim_logic_simulator-0.15.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|