salabim 24.0.10.post5__py3-none-any.whl → 24.0.10.post7__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
salabim/salabim.py CHANGED
@@ -77,7 +77,7 @@ def a_log(*args):
77
77
  class g: ...
78
78
 
79
79
 
80
- if (PythinInExcel or AnacondaCode):
80
+ if (PythonInExcel or AnacondaCode):
81
81
  _pie_result = []
82
82
 
83
83
  def pie_result():
@@ -10209,7 +10209,7 @@ class Environment:
10209
10209
  self.stopped = False
10210
10210
  self._paused = False
10211
10211
  self.last_s0 = ""
10212
- if (PythinInExcel or AnacondaCode):
10212
+ if (PythonInExcel or AnacondaCode):
10213
10213
  self._blind_animation = True
10214
10214
  else:
10215
10215
  self._blind_animation = blind_animation
@@ -11504,7 +11504,7 @@ class Environment:
11504
11504
  if self._video_pingpong:
11505
11505
  self._images.extend(self._images[::-1])
11506
11506
  if self._video_repeat == 1: # in case of repeat == 1, loop should not be specified (otherwise, it might show twice)
11507
- if (PythinInExcel or AnacondaCode): # ***
11507
+ if (PythonInExcel or AnacondaCode): # ***
11508
11508
  with b64_file_handler(self._video_name, mode="b", result=_pie_result) as f:
11509
11509
  self._images[0].save(
11510
11510
  f,
@@ -11525,7 +11525,7 @@ class Environment:
11525
11525
  optimize=False,
11526
11526
  )
11527
11527
  else:
11528
- if (PythinInExcel or AnacondaCode): # ***
11528
+ if (PythonInExcel or AnacondaCode): # ***
11529
11529
  with b64_file_handler(self._video_name, mode="b", result=_pie_result) as f:
11530
11530
  self._images[0].save(
11531
11531
  f,
@@ -13114,7 +13114,7 @@ class Environment:
13114
13114
  mode = "RGB"
13115
13115
  else:
13116
13116
  raise ValueError("extension " + extension + " not supported")
13117
- if (PythinInExcel or AnacondaCode):
13117
+ if (PythonInExcel or AnacondaCode):
13118
13118
  with b64_file_handler(str(filename), mode="b", result=_pie_result) as f:
13119
13119
  format = "jpeg" if extension == ".jpg" else extension[1:]
13120
13120
  self._capture_image(mode, video_mode).save(f, format=format)
@@ -14131,15 +14131,15 @@ class Environment:
14131
14131
  note that the header is only printed if trace=True
14132
14132
  """
14133
14133
  len_s1 = len(self.time_to_str(0))
14134
- self.print_trace((len_s1 - 4) * " " + "time", "current component", "action", "information", "" if (PythinInExcel or AnacondaCode) else "line#")
14135
- self.print_trace(len_s1 * "-", 20 * "-", 35 * "-", 48 * "-", "" if (PythinInExcel or AnacondaCode) else 6 * "-")
14134
+ self.print_trace((len_s1 - 4) * " " + "time", "current component", "action", "information", "" if (PythonInExcel or AnacondaCode) else "line#")
14135
+ self.print_trace(len_s1 * "-", 20 * "-", 35 * "-", 48 * "-", "" if (PythonInExcel or AnacondaCode) else 6 * "-")
14136
14136
  for ref in range(len(self._source_files)):
14137
14137
  for fullfilename, iref in self._source_files.items():
14138
14138
  if ref == iref:
14139
14139
  self._print_legend(iref)
14140
14140
 
14141
14141
  def _print_legend(self, ref):
14142
- if (PythinInExcel or AnacondaCode):
14142
+ if (PythonInExcel or AnacondaCode):
14143
14143
  return
14144
14144
  if ref:
14145
14145
  s = "line numbers prefixed by " + chr(ord("A") + ref - 1) + " refer to"
@@ -14157,7 +14157,7 @@ class Environment:
14157
14157
  return self.filename_lineno_to_str(frameinfo.filename, frameinfo.lineno)
14158
14158
 
14159
14159
  def filename_lineno_to_str(self, filename, lineno):
14160
- if (PythinInExcel or AnacondaCode):
14160
+ if (PythonInExcel or AnacondaCode):
14161
14161
  return "n/a"
14162
14162
  if Path(filename).name == Path(__file__).name: # internal salabim address
14163
14163
  return "n/a"
@@ -24264,7 +24264,7 @@ def _set_name(name, _nameserialize, object):
24264
24264
 
24265
24265
  @functools.lru_cache()
24266
24266
  def _screen_dimensions():
24267
- if (PythinInExcel or AnacondaCode):
24267
+ if (PythonInExcel or AnacondaCode):
24268
24268
  return 1024, 768
24269
24269
  if Pythonista:
24270
24270
  screen_width, screen_height = ui.get_screen_size()
@@ -26280,7 +26280,7 @@ def _std_fonts():
26280
26280
 
26281
26281
 
26282
26282
  def fonts():
26283
- if (PythinInExcel or AnacondaCode):
26283
+ if (PythonInExcel or AnacondaCode):
26284
26284
  return []
26285
26285
  if not hasattr(fonts, "font_list"):
26286
26286
  fonts.font_list = []
@@ -26553,7 +26553,7 @@ def can_animate(try_only: bool = True) -> bool:
26553
26553
  except ImportError:
26554
26554
  ImageGrab = None
26555
26555
 
26556
- if not Pythonista and not (PythinInExcel or AnacondaCode):
26556
+ if not Pythonista and not (PythonInExcel or AnacondaCode):
26557
26557
  from PIL import ImageTk
26558
26558
  except ImportError:
26559
26559
  if try_only:
@@ -26562,7 +26562,7 @@ def can_animate(try_only: bool = True) -> bool:
26562
26562
 
26563
26563
  g.dummy_image = Image.new("RGBA", (1, 1), (0, 0, 0, 0))
26564
26564
 
26565
- if not Pythonista and not (PythinInExcel or AnacondaCode):
26565
+ if not Pythonista and not (PythonInExcel or AnacondaCode):
26566
26566
  if PyDroid:
26567
26567
  if not g.tkinter_loaded:
26568
26568
  if try_only:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: salabim
3
- Version: 24.0.10.post5
3
+ Version: 24.0.10.post7
4
4
  Summary: salabim - discrete event simulation in Python
5
5
  Author-email: Ruud van der Ham <rt.van.der.ham@gmail.com>
6
6
  Project-URL: Homepage, https://salabim.org
@@ -3,8 +3,8 @@ salabim/LICENSE.txt,sha256=qHlBa-POyexatCxDTjSKMlYtkBFQDn9lu-YV_1L6V0U,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=jkHX2FH0E_wyIuHK5sHtFmZ-vTzjMwgtvkOQqaEgDQk,1097385
7
- salabim-24.0.10.post5.dist-info/METADATA,sha256=536RgdiFsGvvFkbo_ZYFUJAciP6QRTl7tEH2zNhf8O4,3456
8
- salabim-24.0.10.post5.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
9
- salabim-24.0.10.post5.dist-info/top_level.txt,sha256=UE6zVlbi3F6T5ma1a_5TrojMaF21GYKDt9svvm0U4cQ,8
10
- salabim-24.0.10.post5.dist-info/RECORD,,
6
+ salabim/salabim.py,sha256=yyyM6mbz3x8EQ6AEnUR02aIIZUmbYQJZAsl7CdaFX2Y,1097385
7
+ salabim-24.0.10.post7.dist-info/METADATA,sha256=Gq2zYDUNDEGm0bGsKCjL5e6eeZ_nBGtgBZ4RwuiUx7A,3456
8
+ salabim-24.0.10.post7.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
9
+ salabim-24.0.10.post7.dist-info/top_level.txt,sha256=UE6zVlbi3F6T5ma1a_5TrojMaF21GYKDt9svvm0U4cQ,8
10
+ salabim-24.0.10.post7.dist-info/RECORD,,