- Translate file de_De complete

- new FrameWidget for rename Entry and rename Button
This commit is contained in:
Désiré Werner Menrath 2024-11-10 14:51:50 +01:00
parent e719a1f23f
commit 1f80d5342c
2 changed files with 39 additions and 25 deletions

View File

@ -8,6 +8,14 @@ My standard System: Linux Mint 22 Cinnamon
- for loops with lists replaced by List Comprehensions
- Update search after start of Wire-Py
### Added
10-11-2024
- Translate file de_De complete
- new FrameWidget for rename Entry and rename Button
### Added
09-11-2024
@ -15,7 +23,6 @@ My standard System: Linux Mint 22 Cinnamon
- Move Version Variable in main script
- Edit Class GiteaUpdate for requests in api_down and download
- Description on Class GiteaUpdate
- Translate file De complete
### Added
@ -25,6 +32,7 @@ My standard System: Linux Mint 22 Cinnamon
- separate folder for general icons
- install edit for new dir lx-icons
### Added
08-11-2024
@ -33,6 +41,7 @@ My standard System: Linux Mint 22 Cinnamon
- add new Frame for Widgets on Bottom
- optimize from tkinter * to from tkinter import filedialog, ttk, TclError
### Added
07-11-2024

View File

@ -14,7 +14,7 @@ from cls_mth_fc import (Tunnel, msg_window, GiteaUpdate, _u, wg_tips, wg_set)
tcl_path = Path('/usr/share/TK-Themes')
''' 1 = 1. Year, 09 = Month of the Year, 2924 = Day and Year of the Year '''
version = 'v. 1.11.0924'
version = 'v. 1.11.1024'
res = GiteaUpdate.api_down('https://git.ilunix.de/api/v1/repos/punix/Wire-Py/releases', version)
@ -178,7 +178,7 @@ class FrameWidgets(ttk.Frame):
window.my_tool_tip.destroy()
self.options_btn = ttk.Menubutton(self.menu_frame, text=_('Options'))
self.options_btn.grid(column=1, row=0)
self.options_btn.grid(column=1, columnspan=1, row=0)
def sets_enter(event):
""" The mouse moves into the entry widget """
@ -205,12 +205,12 @@ class FrameWidgets(ttk.Frame):
''' About BTN Menu / Label '''
self.about_btn = ttk.Button(self.menu_frame, text=_('About'), style='Toolbutton', command=info)
self.about_btn.grid(column=2, row=0)
self.about_btn.grid(column=2, columnspan=2, row=0)
self.readme = tk.Menu(self)
''' Update and Tooltip Label '''
self.updates_lb = ttk.Label(self.menu_frame)
self.updates_lb.grid(column=3, row=0, padx=10)
self.updates_lb.grid(column=3, columnspan=3, row=0, padx=10)
'''View Checkbox for enable or disable Tooltip '''
if wg_tips:
set_tip.set(value=False)
@ -304,6 +304,11 @@ class FrameWidgets(ttk.Frame):
self.lb_frame3.configure(relief='flat')
self.lb_frame3.grid(column=0, row=5, columnspan=4, sticky='snew', padx=2, pady=2)
''' Bottom Frame 5 '''
self.lb_frame4 = ttk.Frame(self)
self.lb_frame4.configure(relief='flat')
self.lb_frame4.grid(column=2, row=5, columnspan=3, sticky='e', padx=15)
''' Show active Label '''
self.select_tunnel = None
self.lb = ttk.Label(self, text=_('Active: '))
@ -561,7 +566,7 @@ class FrameWidgets(ttk.Frame):
self.btn_exp.bind('<Leave>', exp_leave)
''' Label Entry '''
self.lb_rename = ttk.Entry(self.lb_frame3, width=20)
self.lb_rename = ttk.Entry(self.lb_frame4, width=20)
self.lb_rename.grid(column=2, row=0, padx=8, pady=10, sticky='ne')
self.lb_rename.insert(0, _('Max. 12 characters!'))
self.lb_rename.config(state='disable')
@ -662,7 +667,7 @@ class FrameWidgets(ttk.Frame):
msg_window(iw, ii, wt, msg_t)
''' Button Rename '''
self.btn_rename = ttk.Button(self.lb_frame3, text=_('Rename'), state='disable', command=tl_rename, padding=4,
self.btn_rename = ttk.Button(self.lb_frame4, text=_('Rename'), state='disable', command=tl_rename, padding=4,
style='RnButton.TButton')
self.btn_rename.grid(column=3, row=0, padx=5, pady=10, sticky='ne')