Delrius Euphoria

tkinter

A chatroom for the tkinter community.
Jul 10, 2023 19:22
or was it on one of the frames, I dont remember
Jul 10, 2023 19:22
@NordineLotfi root.columnconfigure(0, weight=1) I guess
Jul 10, 2023 18:39
It does work with an additional line of code, but that shouldnt be the case. It shouldve been doing that by default, hmmm
Jul 10, 2023 18:38
Whole
Jul 10, 2023 18:38
That is what sticky='ew' is intended to do atleast
Jul 10, 2023 18:37
@NordineLotfi The expected result should be button2 completely taking the red space
Jul 10, 2023 18:33
@NordineLotfi Can you share an ss?
Jul 8, 2023 18:37
Maybe because I have not used tkinter in a while now, but fundamentally, this sounds all correct to me
Jul 8, 2023 18:36
#!/usr/bin/python3
import tkinter as tk
from tkinter import ttk

root = tk.Tk()
root.geometry("300x200")

style = ttk.Style()

mainframe = ttk.Frame(root)

labelframe = ttk.Labelframe(mainframe)

# Belonging to labelframe
frame = ttk.Frame(labelframe)
frame2 = ttk.Frame(labelframe, style="debug.TFrame")

# Belonging to frame
label = ttk.Label(frame, text="Lorem ipsum dolor sit amet")
button = ttk.Button(frame, text="Button")

# Belonging to frame2
button2 = ttk.Button(frame2, text="Button2")

mainframe.grid()
Jul 8, 2023 18:36
This sounds weird to me, any idea why the button2 does not take up all the space of frame2? It should be working fine
Jun 18, 2023 16:03
Definitely not copied from google ^^
Jun 18, 2023 16:03
@Kesto2 "Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides a fast and easy way to create GUI applications. Tkinter provides a powerful object-oriented interface to the Tk GUI toolkit. Creating a GUI application using Tkinter is an easy task."
Jun 16, 2023 04:33
Some of them are obvious
Jun 16, 2023 04:33
@NordineLotfi Ha I see, how do you understand its GPT generated
Jun 15, 2023 12:19
@NordineLotfi What was the question?
May 4, 2023 22:36
Good luck with your project!!
May 4, 2023 22:36
Hmmm I see
May 4, 2023 21:14
@NordineLotfi In a way that even others can chip in and make changes real time?
May 4, 2023 21:13
:D
May 4, 2023 21:13
@NordineLotfi Nope, it means I dont make GUIs anymore. Websites
May 4, 2023 21:03
What about you guys
May 4, 2023 21:03
Chose tkinter only because I was lazy to design a whole webpage '^_^
May 4, 2023 21:02
@NordineLotfi Well, I don't use it much these days. But I am working on a self driving bus project which will have its UI for check-in presumably in tkinter
Apr 4, 2023 21:27
@Thingamabobs True
Apr 3, 2023 18:56
@Thingamabobs Hmmm yea never know ;)
Apr 3, 2023 15:16
The disabledoutline and disabledfill works, its just disabledwidth not working
Apr 3, 2023 15:15
Theoretically, I don't see any mistakes with the code on first look
Apr 3, 2023 15:07
Could it be some internal bug?
Apr 3, 2023 15:06
Interesting question I think
Apr 3, 2023 15:06
1
Q: Why does the parameter "disabledwidth" of a tkinter canvas rectangle not work?

Matthias SchweikartI want the outline of a rectangle in a canvas to get a bigger width, when the rectangle is in state "disabled". Therefore I use the parameter "disabledwidth=4". But when the rectangle is in state "disabled", the outline has still a width of 1 instead of 4. This is my code, which shows the problem...

Apr 1, 2023 10:45
@xlmaster You could terminate the entire script maybe ?
Mar 30, 2023 15:47
Lol yea, whatever it takes to survive!
Mar 30, 2023 15:44
@Thingamabobs Wow that seems nice, good luck out there!
Mar 30, 2023 15:42
@Thingamabobs All good (yet). Hows everything with you guys
Mar 21, 2023 18:11
@toyotaSupra Where?
Feb 14, 2023 13:52
@Thingamabobs Nah just for fun :P
Feb 13, 2023 23:23
I would say 8-9 years ago, it was easier to get upvotes because there were alot of canonicals back then. Now its all answered up, there are very rare cases of canonicals still in this decade
Feb 13, 2023 23:22
And approx. 400 to get the tkinter gold badge... This is going to take forever..
Feb 13, 2023 23:21
And about 100 to become part of the top 10
Feb 13, 2023 23:20
I need atleast another 40 more upvotes to over take Kevin in points within tkinter section
Feb 13, 2023 23:19
Ha I'm just tryna get some extra points when I am free
Feb 13, 2023 20:11
@Thingamabobs Yeah looks like it too
Feb 12, 2023 23:31
I feel like I bottled up an answer, if you see anything that seems silly, let me know or edit it up
Feb 12, 2023 22:41
looks interesting
Feb 12, 2023 22:41
1
Q: Tkinter, update widgets real time if list is modified

V21Let say I've a list of widgets that are generated by tkinter uisng a loop (it's customtkinter in this case but since tkinter is more well known so I think it'd be better to make an example with it), each widgets lie in the same frame with different label text. Here is an example for the code: ...

Jan 28, 2023 17:42
Ha, DK, maths isn't my thing
Jan 28, 2023 17:31
You mean doesnt move up down? but moves along the diagonals?
Jan 26, 2023 17:35
@Thingamabobs ncie
Jan 26, 2023 13:03
it izz what it izzz