5 questions
1
vote
1
answer
66
views
Alt, Shift and Control key bindings in Tkinter
I am struggling with some key bindings in Tkinter.
In my application, to avoid having to make each widget get the focus prior to having the opportunity of capturing KeyPress events, I decided to use ...
Advice
0
votes
0
replies
18
views
How can I split a Python template string into an array like Ruby's %W[...] operator does?
Basically I want to split the template string by literal whitespace (we don't have to worry about escape chars for these purposes) and produce an array of strings, where bracketed arguments with space ...
1
vote
3
answers
105
views
Force a widget to be a square
I am using Python 3.14 on Windows 11.
I have 2 frames (left and right) inside a top Frame, and there is also a bottom Frame that will act as a status bar.
I want the left frame to be a square, giving ...
7
votes
2
answers
361
views
Why does multiprocess with "fork" fail under Python 3.14 but work in 3.13 (works only with "spawn" and "forkserver")?
The following code works fine on Python 3.13, but fails on Python 3.14 with a RuntimeError related to asyncio tasks.
If I switch the multiprocessing start method from "fork" to "spawn&...
13
votes
2
answers
3k
views
How are Python 3.14 t-strings different than f-strings
Python 3.14 is introducing template strings, so-called t-strings. Can someone explain how these differ from f-strings? What new problems are t-strings helping developers solve?