bash-script-maker 1.6.0__py3-none-any.whl → 1.7.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.6.0.dist-info → bash_script_maker-1.7.0.dist-info}/METADATA +1 -1
- bash_script_maker-1.7.0.dist-info/RECORD +11 -0
- bash_script_maker.py +48 -1
- bash_script_maker-1.6.0.dist-info/RECORD +0 -11
- {bash_script_maker-1.6.0.dist-info → bash_script_maker-1.7.0.dist-info}/LICENSE +0 -0
- {bash_script_maker-1.6.0.dist-info → bash_script_maker-1.7.0.dist-info}/WHEEL +0 -0
- {bash_script_maker-1.6.0.dist-info → bash_script_maker-1.7.0.dist-info}/entry_points.txt +0 -0
- {bash_script_maker-1.6.0.dist-info → bash_script_maker-1.7.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=4lYFmgZV5C__eLAQY5dntcIeZKZixnmOGAcqVZlFvmU,35857
|
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.7.0.dist-info/LICENSE,sha256=G-uFRliqQDtsMvClHiUhNBw84dKRzqodui4tIRPJta8,2334
|
7
|
+
bash_script_maker-1.7.0.dist-info/METADATA,sha256=IcKGs9asROvvsE1XgWKUUTZPI0biDlb_sFx5qfeK9h4,14847
|
8
|
+
bash_script_maker-1.7.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
9
|
+
bash_script_maker-1.7.0.dist-info/entry_points.txt,sha256=jof_Nbub3hvayvOeVKrYpFDadAkCSUA3rqT7n61WED8,119
|
10
|
+
bash_script_maker-1.7.0.dist-info/top_level.txt,sha256=aQp35H7s1JAeQ5IhRLDUS7D-u5ob4IEsGv4ItOv5Afo,72
|
11
|
+
bash_script_maker-1.7.0.dist-info/RECORD,,
|
bash_script_maker.py
CHANGED
@@ -267,7 +267,7 @@ class BashScriptMaker:
|
|
267
267
|
script_dir = os.path.dirname(os.path.abspath(__file__))
|
268
268
|
|
269
269
|
# Icon-Größen die wir haben
|
270
|
-
icon_sizes = [16, 32, 48, 64, 128]
|
270
|
+
icon_sizes = [16, 32, 48, 64, 128, 256]
|
271
271
|
icon_files = []
|
272
272
|
|
273
273
|
# Verfügbare Icon-Dateien sammeln
|
@@ -329,6 +329,50 @@ class BashScriptMaker:
|
|
329
329
|
except Exception as e:
|
330
330
|
print(f"Fehler beim Setzen des Icons: {e}")
|
331
331
|
|
332
|
+
def add_logo_to_toolbar(self, toolbar):
|
333
|
+
"""Fügt das Logo zur Toolbar hinzu"""
|
334
|
+
try:
|
335
|
+
# Pfad zum Icon ermitteln
|
336
|
+
script_dir = os.path.dirname(os.path.abspath(__file__))
|
337
|
+
logo_path = os.path.join(script_dir, "assets", "bash-script-maker-32.png")
|
338
|
+
|
339
|
+
if os.path.exists(logo_path):
|
340
|
+
try:
|
341
|
+
from PIL import Image, ImageTk
|
342
|
+
|
343
|
+
# Logo laden und für Toolbar optimieren
|
344
|
+
img = Image.open(logo_path)
|
345
|
+
# Etwas kleiner für die Toolbar (24x24)
|
346
|
+
img = img.resize((24, 24), Image.Resampling.LANCZOS)
|
347
|
+
logo_photo = ImageTk.PhotoImage(img)
|
348
|
+
|
349
|
+
# Logo-Label erstellen
|
350
|
+
logo_label = ttk.Label(toolbar, image=logo_photo)
|
351
|
+
logo_label.image = logo_photo # Referenz behalten
|
352
|
+
logo_label.pack(side=tk.LEFT, padx=(0, 10), pady=20)
|
353
|
+
|
354
|
+
# Tooltip hinzufügen
|
355
|
+
ToolTip(logo_label, text="Bash-Script-Maker v" + __version__)
|
356
|
+
|
357
|
+
print("Logo zur Toolbar hinzugefügt")
|
358
|
+
|
359
|
+
except ImportError:
|
360
|
+
# Fallback ohne PIL - verwende Text-Logo
|
361
|
+
logo_label = ttk.Label(
|
362
|
+
toolbar,
|
363
|
+
text="🖥️",
|
364
|
+
font=("Arial", 16)
|
365
|
+
)
|
366
|
+
logo_label.pack(side=tk.LEFT, padx=(0, 10), pady=20)
|
367
|
+
ToolTip(logo_label, text="Bash-Script-Maker v" + __version__)
|
368
|
+
print("Text-Logo zur Toolbar hinzugefügt")
|
369
|
+
|
370
|
+
else:
|
371
|
+
print(f"Logo-Datei nicht gefunden: {logo_path}")
|
372
|
+
|
373
|
+
except Exception as e:
|
374
|
+
print(f"Fehler beim Hinzufügen des Logos: {e}")
|
375
|
+
|
332
376
|
def create_menu(self):
|
333
377
|
"""Erstellt das Menü der Anwendung"""
|
334
378
|
menubar = tk.Menu(self.root)
|
@@ -453,6 +497,9 @@ class BashScriptMaker:
|
|
453
497
|
toolbar = ttk.Frame(self.root)
|
454
498
|
toolbar.pack(side=tk.TOP, fill=tk.X, padx=5, pady=(5, 0))
|
455
499
|
|
500
|
+
# Logo hinzufügen (links)
|
501
|
+
self.add_logo_to_toolbar(toolbar)
|
502
|
+
|
456
503
|
# Toolbar-Inhalte - LINKS
|
457
504
|
btn_new = ttk.Button(
|
458
505
|
toolbar, text=_("Neu"), command=self.new_script, bootstyle="primary"
|
@@ -1,11 +0,0 @@
|
|
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,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|