bash-script-maker 1.5.0__py3-none-any.whl → 1.6.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.
- {bash_script_maker-1.5.0.dist-info → bash_script_maker-1.6.0.dist-info}/METADATA +1 -1
- bash_script_maker-1.6.0.dist-info/RECORD +11 -0
- bash_script_maker.py +23 -14
- bash_script_maker-1.5.0.dist-info/RECORD +0 -11
- {bash_script_maker-1.5.0.dist-info → bash_script_maker-1.6.0.dist-info}/LICENSE +0 -0
- {bash_script_maker-1.5.0.dist-info → bash_script_maker-1.6.0.dist-info}/WHEEL +0 -0
- {bash_script_maker-1.5.0.dist-info → bash_script_maker-1.6.0.dist-info}/entry_points.txt +0 -0
- {bash_script_maker-1.5.0.dist-info → bash_script_maker-1.6.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
assets.py,sha256=QMUllYA8CPAdu5ulDGRZm3opmimFSSAllUCol_RylmA,1012
|
2
|
+
bash_script_maker.py,sha256=21r5cV3KKTH9kIUqq-eX2FguINwrXeqis-iUzQ0YzFc,33791
|
3
|
+
custom_dialogs.py,sha256=Rr3jXuuZFRDNSBiM2sHcKhix3yiacvQkp6eluozwzmk,9243
|
4
|
+
localization.py,sha256=6Dbyf8qG-p6_vUDPoBTtVBnSixO7_gLVtPnuIC4Fchs,1344
|
5
|
+
syntax_highlighter.py,sha256=1umHO8lhhb_FxomXS3Yiub-KTWtBymt60ct5Www3boU,34954
|
6
|
+
bash_script_maker-1.6.0.dist-info/LICENSE,sha256=G-uFRliqQDtsMvClHiUhNBw84dKRzqodui4tIRPJta8,2334
|
7
|
+
bash_script_maker-1.6.0.dist-info/METADATA,sha256=XTIN8Kt2LzBukzflxc0WlnNNOO1R8GctUbbpMPcHvMk,14847
|
8
|
+
bash_script_maker-1.6.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
9
|
+
bash_script_maker-1.6.0.dist-info/entry_points.txt,sha256=jof_Nbub3hvayvOeVKrYpFDadAkCSUA3rqT7n61WED8,119
|
10
|
+
bash_script_maker-1.6.0.dist-info/top_level.txt,sha256=aQp35H7s1JAeQ5IhRLDUS7D-u5ob4IEsGv4ItOv5Afo,72
|
11
|
+
bash_script_maker-1.6.0.dist-info/RECORD,,
|
bash_script_maker.py
CHANGED
@@ -236,7 +236,7 @@ class BashScriptMaker:
|
|
236
236
|
self.root = root
|
237
237
|
self.root.title("Bash-Script-Maker")
|
238
238
|
self.root.geometry("1200x800")
|
239
|
-
|
239
|
+
|
240
240
|
# Icon setzen
|
241
241
|
self.set_window_icon()
|
242
242
|
|
@@ -265,39 +265,44 @@ class BashScriptMaker:
|
|
265
265
|
try:
|
266
266
|
# Pfad zum Icon ermitteln
|
267
267
|
script_dir = os.path.dirname(os.path.abspath(__file__))
|
268
|
-
|
268
|
+
|
269
269
|
# Icon-Größen die wir haben
|
270
270
|
icon_sizes = [16, 32, 48, 64, 128]
|
271
271
|
icon_files = []
|
272
|
-
|
272
|
+
|
273
273
|
# Verfügbare Icon-Dateien sammeln
|
274
274
|
for size in icon_sizes:
|
275
|
-
icon_path = os.path.join(
|
275
|
+
icon_path = os.path.join(
|
276
|
+
script_dir, "assets", f"bash-script-maker-{size}.png"
|
277
|
+
)
|
276
278
|
if os.path.exists(icon_path):
|
277
279
|
icon_files.append(icon_path)
|
278
|
-
|
280
|
+
|
279
281
|
# Fallback auf 16px Icon
|
280
282
|
if not icon_files:
|
281
|
-
fallback_path = os.path.join(
|
283
|
+
fallback_path = os.path.join(
|
284
|
+
script_dir, "assets", "bash-script-maker-16.png"
|
285
|
+
)
|
282
286
|
if os.path.exists(fallback_path):
|
283
287
|
icon_files.append(fallback_path)
|
284
|
-
|
288
|
+
|
285
289
|
if icon_files:
|
286
290
|
# PNG-Icons verwenden
|
287
291
|
try:
|
288
292
|
from PIL import Image, ImageTk
|
293
|
+
|
289
294
|
# Alle verfügbaren Icon-Größen laden
|
290
295
|
icons = []
|
291
|
-
|
296
|
+
|
292
297
|
for icon_path in icon_files:
|
293
298
|
img = Image.open(icon_path)
|
294
299
|
photo = ImageTk.PhotoImage(img)
|
295
300
|
icons.append(photo)
|
296
|
-
|
301
|
+
|
297
302
|
# Haupticon setzen (alle Größen)
|
298
303
|
self.root.iconphoto(True, *icons)
|
299
304
|
print(f"Icons gesetzt: {len(icons)} Größen")
|
300
|
-
|
305
|
+
|
301
306
|
except ImportError:
|
302
307
|
# Fallback ohne PIL - verwende größtes verfügbares Icon
|
303
308
|
try:
|
@@ -308,15 +313,19 @@ class BashScriptMaker:
|
|
308
313
|
print(f"Icon gesetzt (ohne PIL): {best_icon}")
|
309
314
|
except tk.TclError as e:
|
310
315
|
print(f"Fehler beim Laden des PNG-Icons: {e}")
|
311
|
-
|
316
|
+
|
312
317
|
else:
|
313
318
|
# Kein PNG gefunden, prüfe SVG
|
314
|
-
svg_icon_path = os.path.join(
|
319
|
+
svg_icon_path = os.path.join(
|
320
|
+
script_dir, "assets", "bash-script-maker.svg"
|
321
|
+
)
|
315
322
|
if os.path.exists(svg_icon_path):
|
316
|
-
print(
|
323
|
+
print(
|
324
|
+
f"SVG-Icon gefunden, aber PNG wird für Tkinter bevorzugt: {svg_icon_path}"
|
325
|
+
)
|
317
326
|
else:
|
318
327
|
print("Keine Icon-Datei gefunden in assets/")
|
319
|
-
|
328
|
+
|
320
329
|
except Exception as e:
|
321
330
|
print(f"Fehler beim Setzen des Icons: {e}")
|
322
331
|
|
@@ -1,11 +0,0 @@
|
|
1
|
-
assets.py,sha256=QMUllYA8CPAdu5ulDGRZm3opmimFSSAllUCol_RylmA,1012
|
2
|
-
bash_script_maker.py,sha256=p6lfusRj9Uvt-fMiAqhRJ5DIWKqBLfZV3ksJcm_64I0,33786
|
3
|
-
custom_dialogs.py,sha256=Rr3jXuuZFRDNSBiM2sHcKhix3yiacvQkp6eluozwzmk,9243
|
4
|
-
localization.py,sha256=6Dbyf8qG-p6_vUDPoBTtVBnSixO7_gLVtPnuIC4Fchs,1344
|
5
|
-
syntax_highlighter.py,sha256=1umHO8lhhb_FxomXS3Yiub-KTWtBymt60ct5Www3boU,34954
|
6
|
-
bash_script_maker-1.5.0.dist-info/LICENSE,sha256=G-uFRliqQDtsMvClHiUhNBw84dKRzqodui4tIRPJta8,2334
|
7
|
-
bash_script_maker-1.5.0.dist-info/METADATA,sha256=6BZ7Vn1YVBO2ZScTNOZB-JrzZtuPE9Rbbl3T1LdnUm8,14847
|
8
|
-
bash_script_maker-1.5.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
9
|
-
bash_script_maker-1.5.0.dist-info/entry_points.txt,sha256=jof_Nbub3hvayvOeVKrYpFDadAkCSUA3rqT7n61WED8,119
|
10
|
-
bash_script_maker-1.5.0.dist-info/top_level.txt,sha256=aQp35H7s1JAeQ5IhRLDUS7D-u5ob4IEsGv4ItOv5Afo,72
|
11
|
-
bash_script_maker-1.5.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|