fix xdaily error not working in diferente locales that are not English

This commit is contained in:
manuel 2024-06-28 11:58:07 +00:00
parent ee71c51f94
commit e1f9cf6b80
2 changed files with 8 additions and 8 deletions

View File

@ -115,8 +115,8 @@ get_started = ttk.Button(menu_xd_intro, text="Get started",
command=lambda:xdaily_functions.manage_updates_tab(main_notebook, output_text, run_task_updates,xd_intro,manage_updates), command=lambda:xdaily_functions.manage_updates_tab(main_notebook, output_text, run_task_updates,xd_intro,manage_updates),
width=8 width=8
) )
get_started.grid(row=1, column=0, ipadx=6.5, ipady=6.5, padx=6.5, get_started.grid(row=1, column=0, ipadx=6, ipady=6, padx=6,
pady=6.5, pady=6,
sticky='ew' sticky='ew'
) )
pep_docs = ttk.Button(menu_xd_intro, text="Pep Docs", pep_docs = ttk.Button(menu_xd_intro, text="Pep Docs",
@ -124,21 +124,21 @@ pep_docs = ttk.Button(menu_xd_intro, text="Pep Docs",
command = xdaily_functions.pep_docs, command = xdaily_functions.pep_docs,
width=8 width=8
) )
pep_docs.grid(row=1, column=1, ipadx=6.5, ipady=6.5, padx=6.5, pep_docs.grid(row=1, column=1, ipadx=6, ipady=6, padx=6,
pady=6.5, sticky='ew' pady=6, sticky='ew'
) )
community = ttk.Button(menu_xd_intro, text="Forums", community = ttk.Button(menu_xd_intro, text="Forums",
bootstyle="danger", cursor="hand2", bootstyle="danger", cursor="hand2",
command = xdaily_functions.source_forge, width=8 command = xdaily_functions.source_forge, width=8
) )
community.grid(row=2, column=0, ipadx=6.5, ipady=6.5, padx=6.5, community.grid(row=2, column=0, ipadx=6, ipady=6, padx=6,
pady=6.5, sticky='ew' pady=6, sticky='ew'
) )
runall = ttk.Button(menu_xd_intro, text="Run all tasks", runall = ttk.Button(menu_xd_intro, text="Run all tasks",
bootstyle="danger", cursor="hand2", bootstyle="danger", cursor="hand2",
command = xdaily_functions.run_terminal_xdaily, width=8 command = xdaily_functions.run_terminal_xdaily, width=8
) )
runall.grid(row=2, column=1, ipadx=6.5, ipady=6.5, padx=6.5, pady=6.5, runall.grid(row=2, column=1, ipadx=6, ipady=6, padx=6, pady=6,
sticky='ew' sticky='ew'
) )
##################################################### #####################################################

View File

@ -313,7 +313,7 @@ def currently_pending_updates(xd_intro):
tree.insert(type_node, "end", values=(package, "")) tree.insert(type_node, "end", values=(package, ""))
tree.set(type_node, "count", str(data["count"])) tree.set(type_node, "count", str(data["count"]))
tree.pack(expand=True, fill=tk.BOTH, padx=5.7, pady=5.7) tree.pack(expand=True, fill=tk.BOTH, padx=6, pady=6)
def get_update_records(): def get_update_records():