salabim 25.0.11__py3-none-any.whl → 25.0.12__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.
- salabim/salabim.py +17 -16
- {salabim-25.0.11.dist-info → salabim-25.0.12.dist-info}/METADATA +1 -1
- {salabim-25.0.11.dist-info → salabim-25.0.12.dist-info}/RECORD +5 -5
- {salabim-25.0.11.dist-info → salabim-25.0.12.dist-info}/WHEEL +0 -0
- {salabim-25.0.11.dist-info → salabim-25.0.12.dist-info}/top_level.txt +0 -0
salabim/salabim.py
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
# _ _ _ ____ ____ ___ _
|
2
|
-
# ___ __ _ | | __ _ | |__ (_) _ __ ___ |___ \ | ___| / _ \ /
|
3
|
-
# / __| / _` || | / _` || '_ \ | || '_ ` _ \ __) ||___ \ | | | | |
|
4
|
-
# \__ \| (_| || || (_| || |_) || || | | | | | / __/ ___) | _ | |_| | _ |
|
5
|
-
# |___/ \__,_||_| \__,_||_.__/ |_||_| |_| |_| |_____||____/ (_) \___/ (_)|_||
|
1
|
+
# _ _ _ ____ ____ ___ _ ____
|
2
|
+
# ___ __ _ | | __ _ | |__ (_) _ __ ___ |___ \ | ___| / _ \ / ||___ \
|
3
|
+
# / __| / _` || | / _` || '_ \ | || '_ ` _ \ __) ||___ \ | | | | | | __) |
|
4
|
+
# \__ \| (_| || || (_| || |_) || || | | | | | / __/ ___) | _ | |_| | _ | | / __/
|
5
|
+
# |___/ \__,_||_| \__,_||_.__/ |_||_| |_| |_| |_____||____/ (_) \___/ (_)|_||_____|
|
6
6
|
# discrete event simulation
|
7
7
|
#
|
8
8
|
# see www.salabim.org for more information, the documentation and license information
|
9
9
|
|
10
|
-
__version__ = "25.0.
|
10
|
+
__version__ = "25.0.12"
|
11
11
|
import heapq
|
12
12
|
import random
|
13
13
|
import time
|
@@ -2897,7 +2897,7 @@ class Monitor:
|
|
2897
2897
|
|
2898
2898
|
if False, all parameters are scaled for positioning and scaling
|
2899
2899
|
objects.
|
2900
|
-
|
2900
|
+
|
2901
2901
|
Returns
|
2902
2902
|
-------
|
2903
2903
|
reference to AnimateMonitor object : AnimateMonitor
|
@@ -3678,7 +3678,7 @@ class AnimateMonitor(DynamicClass):
|
|
3678
3678
|
|
3679
3679
|
if False, all parameters are scaled for positioning and scaling
|
3680
3680
|
objects.
|
3681
|
-
|
3681
|
+
|
3682
3682
|
Note
|
3683
3683
|
----
|
3684
3684
|
All measures are in screen coordinates
|
@@ -4412,7 +4412,7 @@ class Queue:
|
|
4412
4412
|
|
4413
4413
|
if False, all parameters are scaled for positioning and scaling
|
4414
4414
|
objects.
|
4415
|
-
|
4415
|
+
|
4416
4416
|
Returns
|
4417
4417
|
-------
|
4418
4418
|
reference to AnimationQueue object : AnimationQueue
|
@@ -13410,6 +13410,12 @@ class Environment:
|
|
13410
13410
|
self.step()
|
13411
13411
|
|
13412
13412
|
def do_simulate_and_animate(self):
|
13413
|
+
self._x0z = self._x0
|
13414
|
+
self._y0z = self._y0
|
13415
|
+
self._x1z = self._x1
|
13416
|
+
self._y1z = self._y1
|
13417
|
+
self._scalez = self._last_scalez = self._scale
|
13418
|
+
|
13413
13419
|
if Pythonista:
|
13414
13420
|
if self._animate3d:
|
13415
13421
|
self.running = False
|
@@ -13420,12 +13426,7 @@ class Environment:
|
|
13420
13426
|
raise SimulationStopped
|
13421
13427
|
else:
|
13422
13428
|
self.root.after(0, self.simulate_and_animate_loop)
|
13423
|
-
self._x0z = self._x0
|
13424
|
-
self._y0z = self._y0
|
13425
|
-
self._x1z = self._x1
|
13426
|
-
self._y1z = self._y1
|
13427
13429
|
|
13428
|
-
self._scalez = self._last_scalez = self._scale
|
13429
13430
|
self.root.mainloop()
|
13430
13431
|
if self._animate and self.running:
|
13431
13432
|
if self._video:
|
@@ -18348,7 +18349,7 @@ class AnimateQueue(DynamicClass):
|
|
18348
18349
|
if ((max_length is not None) and n >= max_length) or not self.visible_t:
|
18349
18350
|
break
|
18350
18351
|
|
18351
|
-
if c in prev_aos and self.env._scalez != self.env._last_scalez:
|
18352
|
+
if c in prev_aos and self.env._scalez != self.env._last_scalez: # if scale changed (due to zooming), rerender the animation_objects
|
18352
18353
|
animation_objects = self.current_aos[c] = prev_aos[c]
|
18353
18354
|
del prev_aos[c]
|
18354
18355
|
else:
|
@@ -18495,7 +18496,7 @@ class Animate3dQueue(DynamicClass):
|
|
18495
18496
|
|
18496
18497
|
if False, all parameters are scaled for positioning and scaling
|
18497
18498
|
objects.
|
18498
|
-
|
18499
|
+
|
18499
18500
|
Note
|
18500
18501
|
----
|
18501
18502
|
All parameters, apart from queue, id, arg, screen_coordinates and parent can be specified as:
|
@@ -3,8 +3,8 @@ salabim/LICENSE.txt,sha256=eTPlcDJz4G0096Qv-wfMjm1Wxbd4ilDlsYg5rN4HjWQ,1106
|
|
3
3
|
salabim/__init__.py,sha256=r7qPLvlmX0dkZDyjuTo8Jo3ex3sD1L4pmK6K5ib9vyw,56
|
4
4
|
salabim/calibri.ttf,sha256=RWpf8Uo31RfvGGNaSt9-2sXSuN87AVE_NFMRsV3LhBk,1330156
|
5
5
|
salabim/mplus-1m-regular.ttf,sha256=EuFHr90BJjuAn_r5MleJFN-WfkeWJ4tf7DweI5zr8tU,289812
|
6
|
-
salabim/salabim.py,sha256=
|
7
|
-
salabim-25.0.
|
8
|
-
salabim-25.0.
|
9
|
-
salabim-25.0.
|
10
|
-
salabim-25.0.
|
6
|
+
salabim/salabim.py,sha256=7AEPmSfhkxn4LLhbCFnCOv8ZtirqghPGVPexaccdveg,1126188
|
7
|
+
salabim-25.0.12.dist-info/METADATA,sha256=bD1OneTFSEm7M1KPTwMWj_TAFdSD6M2a3T0j-VSJkKM,3400
|
8
|
+
salabim-25.0.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
9
|
+
salabim-25.0.12.dist-info/top_level.txt,sha256=UE6zVlbi3F6T5ma1a_5TrojMaF21GYKDt9svvm0U4cQ,8
|
10
|
+
salabim-25.0.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|