salabim 23.3.6__tar.gz → 23.3.8__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {salabim-23.3.6 → salabim-23.3.8}/PKG-INFO +1 -1
- {salabim-23.3.6 → salabim-23.3.8}/salabim/changelog.txt +69 -1
- {salabim-23.3.6 → salabim-23.3.8}/salabim/salabim.py +39130 -26465
- {salabim-23.3.6 → salabim-23.3.8}/salabim.egg-info/PKG-INFO +1 -1
- {salabim-23.3.6 → salabim-23.3.8}/setup.py +1 -1
- {salabim-23.3.6 → salabim-23.3.8}/MANIFEST.in +0 -0
- {salabim-23.3.6 → salabim-23.3.8}/README.rst +0 -0
- {salabim-23.3.6 → salabim-23.3.8}/salabim/DejaVuSansMono.ttf +0 -0
- {salabim-23.3.6 → salabim-23.3.8}/salabim/README.rst +0 -0
- {salabim-23.3.6 → salabim-23.3.8}/salabim/__init__.py +0 -0
- {salabim-23.3.6 → salabim-23.3.8}/salabim/calibri.ttf +0 -0
- {salabim-23.3.6 → salabim-23.3.8}/salabim/mplus-1m-regular.ttf +0 -0
- {salabim-23.3.6 → salabim-23.3.8}/salabim.egg-info/SOURCES.txt +0 -0
- {salabim-23.3.6 → salabim-23.3.8}/salabim.egg-info/dependency_links.txt +0 -0
- {salabim-23.3.6 → salabim-23.3.8}/salabim.egg-info/top_level.txt +0 -0
- {salabim-23.3.6 → salabim-23.3.8}/setup.cfg +0 -0
@@ -1,6 +1,74 @@
|
|
1
1
|
salabim changelog
|
2
2
|
|
3
|
-
version 23.3.
|
3
|
+
version 23.3.8 2023-09-05
|
4
|
+
==========================
|
5
|
+
Enhanced UI functionality (0)
|
6
|
+
-----------------------------
|
7
|
+
The UI window layout has been changed to be more useful with
|
8
|
+
narrower windows.
|
9
|
+
Some more updates to the appearance.
|
10
|
+
|
11
|
+
When the UI is started, the time in the animation window is no longer disabled.
|
12
|
+
The user can always switch that off with Environment.show_time(False).
|
13
|
+
|
14
|
+
Environment.start_ui() now has useful defaults for window_size and window_position.
|
15
|
+
|
16
|
+
Environment.start_ui() now has a parameter default_actions, which is True by default.
|
17
|
+
If False, there are no actions like, pause/go, speed, etc. defined, so the user has to
|
18
|
+
specify the required actions with the actions parameter.
|
19
|
+
This is useful to use a different layout or leave out certain elements. Be sure to
|
20
|
+
use the same keys to be able to use the programmed interactions. However, you
|
21
|
+
can leave out elements.
|
22
|
+
|
23
|
+
It is recommended to use the standard actions as a template:
|
24
|
+
|
25
|
+
[sg.Text("", key="-TIME-", metadata=[1, 2], size=200)],
|
26
|
+
[sg.Button("Pause", key="-PAUSE-GO-", metadata=[1, 2]), sg.Button("Stop", key="-STOP-", button_color=("white", "firebrick3"), metadata=[1, 2])],
|
27
|
+
[sg.Checkbox("Pause at each step", False, key="-PAUSE-AT-EACH-STEP-", enable_events=True, metadata=[1, 2])],
|
28
|
+
[sg.Text(f"Pause at{env.get_time_unit(template='(t)')}", key="-PAUSE-AT-TEXT-", size=17), sg.Input("", key="-PAUSE-AT-", size=(10, 20))],
|
29
|
+
[sg.Text(f"Pause each{env.get_time_unit(template='(d)')}", key="-PAUSE-EACH-TEXT-", size=17), sg.Input("", key="-PAUSE-EACH-", size=(10, 20))],
|
30
|
+
[
|
31
|
+
sg.Text("Speed", key="-SPEED-TEXT-", metadata=[1]),
|
32
|
+
sg.Button("/2", key="-SPEED/2-", metadata=[1]),
|
33
|
+
sg.Button("*2", key="-SPEED*2-", metadata=[1]),
|
34
|
+
sg.Input("", key="-SPEED-", size=(7, 10)),
|
35
|
+
],
|
36
|
+
[sg.Checkbox("Trace", env.trace(), key="-TRACE-", metadata=[1, 2], enable_events=True)],
|
37
|
+
[sg.Checkbox("Synced", env.synced(), key="-SYNCED-", metadata=[1], enable_events=True)],
|
38
|
+
[sg.Checkbox("Animate", True, key="-ANIMATE-", metadata=[1, 2], enable_events=True)],
|
39
|
+
|
40
|
+
|
41
|
+
The simulation did not stop exactly at the time given in 'Pause at'. Fixed.
|
42
|
+
|
43
|
+
Added demos (0)
|
44
|
+
---------------
|
45
|
+
The program demo_ui.py shows a pretty standard UI with some extra elements.
|
46
|
+
|
47
|
+
The program demo_horizontal_ui.py demonstrates the same functionality, but now
|
48
|
+
with a horizontal UI window. Note that this requires quite a bit more
|
49
|
+
code than the standard one.
|
50
|
+
But it demonstrates what is possible.
|
51
|
+
|
52
|
+
Bug fix (0)
|
53
|
+
-----------
|
54
|
+
Component.to_store_store did not always return the right store. Fixed.
|
55
|
+
Thanks to Florian Förster for reporting this bug and the fix.
|
56
|
+
|
57
|
+
Bug fix (1)
|
58
|
+
-----------
|
59
|
+
Store.to_store_requesters() returned the wrong queue. Fixed.
|
60
|
+
|
61
|
+
version 23.3.7 2023-08-22
|
62
|
+
==========================
|
63
|
+
Bug fix (0)
|
64
|
+
-----------
|
65
|
+
Environment.paused(True) did not call set_start_animation(), which is required. Fixed.
|
66
|
+
|
67
|
+
Bug fix (1)
|
68
|
+
-----------
|
69
|
+
Removing and showing an animated monitor did not restore the labels and label lines. Fixed.
|
70
|
+
|
71
|
+
version 23.3.6 2023-08-18
|
4
72
|
==========================
|
5
73
|
New functionality (0)
|
6
74
|
---------------------
|