Re: Amy known issues with tkinter /ttk on latest MacOS?

2023-11-19 Thread Alan Gauld via Python-list
On 17/11/2023 03:38, Terry Reedy wrote: > There have been other reports on the cpython issue tracker than Sonoma > broke bits of tk behavior. > https://github.com/python/cpython/issues?q=is%3Aissue+label%3AOS-mac+is%3Aclosed > > shows a couple Thanks Terry, I had a browse and it seems I'm

Amy known issues with tkinter /ttk on latest MacOS?

2023-11-16 Thread Alan Gauld via Python-list
I have a little app that I wrote ages ago (2015) using tkinter/ttk and it just works. Or it did, up until the latest MacOS version upgrade and now it has become very sporadic in response to mouse clicks. For example I have a drop-down list and I can drop the list but then it won't let me select

Re: Tkinter ttk Treeview binding responds to past events!

2023-09-12 Thread John O'Hagan via Python-list
...] > > > > > > > FWIW, here's a version without after(), solving this purely on > > > the > > > python side, not by temporarily unbinding the event, but by > > > selectively doing nothing in the callback function. > > > > > >

Re: Tkinter ttk Treeview binding responds to past events!

2023-09-12 Thread MRAB via Python-list
from tkinter import * from tkinter.ttk import * class Test: def __init__(self): self.inhibit = False root=Tk() self.tree = Treeview(root) self.tree.pack() self.iid = self.tree.insert('', 0, text='test') Button(root, command=self.temp_inhibit

Re: Tkinter ttk Treeview binding responds to past events!

2023-09-12 Thread John O'Hagan via Python-list
the state: > - TreeviewSelect is bound > - events are queued > > [. . .] Thanks (also to others who have explained), now I get it! > FWIW, here's a version without after(), solving this purely on the  > python side, not by temporarily unbinding the event, but by > sele

Re: Tkinter ttk Treeview binding responds to past events!

2023-09-12 Thread Rob Cliffe via Python-list
On 12/09/2023 19:51, Mirko via Python-list wrote: I have also found that after() is a cure for some ills, though I avoid using it more than I have to because it feels ... a bit fragile, perhaps. Yeah. Though for me it was the delay which made it seem fragile. With a 0 delay, this looks

Re: Tkinter ttk Treeview binding responds to past events!

2023-09-12 Thread MRAB via Python-list
On 2023-09-12 19:51, Mirko via Python-list wrote: Am 12.09.23 um 07:43 schrieb John O'Hagan via Python-list: My issue is solved, but I'm still curious about what is happening here. MRAB already said it: When you enter the callback function, Tk's mainloop waits for it to return. So what's

Re: Tkinter ttk Treeview binding responds to past events!

2023-09-12 Thread Mirko via Python-list
in the callback function. from tkinter import * from tkinter.ttk import * class Test: def __init__(self): self.inhibit = False root=Tk() self.tree = Treeview(root) self.tree.pack() self.iid = self.tree.insert('', 0, text='test') Button(root

Re: Tkinter ttk Treeview binding responds to past events!

2023-09-12 Thread MRAB via Python-list
On 2023-09-12 06:43, John O'Hagan via Python-list wrote: On Mon, 2023-09-11 at 22:25 +0200, Mirko via Python-list wrote: Am 11.09.23 um 14:30 schrieb John O'Hagan via Python-list: > I was surprised that the code below prints 'called' three times. > > > from tkinter impo

Re: Tkinter ttk Treeview binding responds to past events!

2023-09-12 Thread John O'Hagan via Python-list
On Mon, 2023-09-11 at 22:25 +0200, Mirko via Python-list wrote: > Am 11.09.23 um 14:30 schrieb John O'Hagan via Python-list: > > I was surprised that the code below prints 'called' three times. > > > > > > from tkinter import * > > from tkinter.ttk import

Re: Tkinter ttk Treeview binding responds to past events!

2023-09-11 Thread Rob Cliffe via Python-list
On 11/09/2023 21:25, Mirko via Python-list wrote: Am 11.09.23 um 14:30 schrieb John O'Hagan via Python-list: I was surprised that the code below prints 'called' three times. from tkinter import * from tkinter.ttk import * root=Tk() def callback(*e):      print('called') tree = Treeview

Re: Tkinter ttk Treeview binding responds to past events!

2023-09-11 Thread Mirko via Python-list
Am 11.09.23 um 14:30 schrieb John O'Hagan via Python-list: I was surprised that the code below prints 'called' three times. from tkinter import * from tkinter.ttk import * root=Tk() def callback(*e):     print('called') tree = Treeview(root) tree.pack() iid = tree.insert('', 0, text='test

Tkinter ttk Treeview binding responds to past events!

2023-09-11 Thread John O'Hagan via Python-list
I was surprised that the code below prints 'called' three times. from tkinter import * from tkinter.ttk import * root=Tk() def callback(*e):     print('called') tree = Treeview(root) tree.pack() iid = tree.insert('', 0, text='test') tree.selection_set(iid) tree.selection_remove(iid

TKinter in Python - advanced notions - ok

2023-06-24 Thread Dan Kolis via Python-list
id' of course for placement. But all colors, and callbacks for changes are entirely in called pieces, which have been tested like 150% crazy. sb is import screenBuilder1 assb # Screen maker for TKinter and TKinter ++ windows If you want to use my 'screenbuilder'... talk to

Re: TKinter in Python - advanced notions

2023-06-24 Thread Chris Angelico via Python-list
On Sat, 24 Jun 2023 at 15:57, Thomas Passin via Python-list wrote: > As a general comment (and I have not done anything tricky or complex > with Tk), MVC or the other approaches in a similar vein, though good, > can lead you into more complexity than you need, because of the extra > abstractions

Re: TKinter in Python - advanced notions

2023-06-23 Thread Thomas Passin via Python-list
-Original Message- From: Python-list On Behalf Of Diego Souza via Python-list Sent: Friday, June 23, 2023 4:14 AM To: aapost Cc: python-list Subject: Re: TKinter in Python - advanced notions Have you considered improving the architecture itself, not your GUI library skills? I recommend

Re: TKinter in Python - advanced notions - reactive

2023-06-23 Thread Dan Kolis via Python-list
I am not specifically having any problems implementing what I want to make work. Callbacks etc make it fairly easy to make TKinter react to things without any specific fancy plan for it. Add callbacks for real time changes early in any new notion, after it looks right go to the IO part make

Re: TKinter in Python - advanced notions

2023-06-23 Thread Dan Kolis via Python-list
If you have a problem,. ask a super specific question, here. If I can help, I will, but TKINTER knowledge is pretty spread around. Many others migth jump in, too. Its works, its slightly quirky, has no licencing hangups. X11 makes fine fine programs ! Keep hacking,Dan -- https

RE: TKinter in Python - advanced notions

2023-06-23 Thread Andreas Heckel via Python-list
n-list > On Behalf Of Diego Souza via Python-list > Sent: Friday, June 23, 2023 4:14 AM > To: aapost > Cc: python-list > Subject: Re: TKinter in Python - advanced notions > > Have you considered improving the architecture itself, not your GUI library > skills? > > I recommend

Re: TKinter in Python - advanced notions

2023-06-22 Thread Diego Souza via Python-list
ogy ), and > am slowly outgrowing TKINTER. > > > > Has anybody out there merged a little bit of TCL direct calls from > Python 3.X to get more freedom then TKINTER for just some Windows ? > > > I wish it looked better, but its 'ok'. I believe X11 IO is considerably >

Re: TKinter in Python - advanced notions

2023-06-21 Thread aapost via Python-list
On 6/21/23 09:47, Dan Kolis wrote: I've write a huge biotech program ( an IDE for synthetic biology ), and am slowly outgrowing TKINTER. Has anybody out there merged a little bit of TCL direct calls from Python 3.X to get more freedom then TKINTER for just some Windows ? I wish it looked

TKinter in Python - advanced notions

2023-06-21 Thread Dan Kolis via Python-list
Hi, I've write a huge biotech program ( an IDE for synthetic biology ), and am slowly outgrowing TKINTER. Has anybody out there merged a little bit of TCL direct calls from Python 3.X to get more freedom then TKINTER for just some Windows ? How about bold stories of successes ( yours

Re: Tkinter docs?

2023-05-30 Thread Grant Edwards
On 2023-05-26, Rob Cliffe via Python-list wrote: > Grant, I may well buy one of the books you suggested. I haven't had look at either of the newer books, but I got a lot of good out of the Grayson book (20 years ago). I also had a Tcl/Tk book that I found useful even when usng tkin

Tkinter Redo's

2023-05-30 Thread Dan Kolis
On Tuesday, May 30, 2023 at 1:28:04 PM UTC-4, Rob Cliffe wrote: > Thanks to everyone who replied. All replies were constructive, none > were telling me to stop belly-aching. Hi, Dan says: When you get your style ideas sort of frozen, maybe you can poke up a sample here. Aworked example for

Re: Tkinter docs?

2023-05-30 Thread Rob Cliffe via Python-list
Thanks to everyone who replied.  All replies were constructive, none were telling me to stop belly-aching. I forgot/omitted to state that it was I who wrote the original project (in a completely different language), making the task of re-writing it much less formidable.  And meaning that I am

Re: Tkinter docs?

2023-05-24 Thread Cameron Simpson
On 24May2023 02:18, Rob Cliffe wrote:     There doesn't seem to be any decent documentation for it anywhere. Already mentioned in the replies, I use this: https://tkdocs.com/shipman/index.html quite a lot. -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter docs?

2023-05-24 Thread Christian Gollwitzer
Am 24.05.23 um 03:18 schrieb Rob Cliffe: I have recently started converting a large project to tkinter, starting with zero knowledge of tkinter.  (You are free to think: BAD IDEA. ) Welcome to the awesome world of GUI development.     I was writing a subclass of the Checkbutton class

Re: Tkinter docs?

2023-05-24 Thread Chris Angelico
On Wed, 24 May 2023 at 13:11, Rob Cliffe via Python-list wrote: > > I have recently started converting a large project to tkinter, starting > with zero knowledge of tkinter. (You are free to think: BAD IDEA. ) > I am well aware that adopting a new tool always involves a lear

Re: Tkinter docs?

2023-05-23 Thread aapost
On 5/23/23 21:18, Rob Cliffe wrote: Comments, anyone? Better yet (holds breath ...) can anyone point me towards some decent tkinter documentation? The variables are slightly more integrated when using tcl/tk directly, python has to have the object so you can track/use them easier

Re: Tkinter docs?

2023-05-23 Thread Grant Edwards
On 2023-05-24, Rob Cliffe via Python-list wrote: > I have recently started converting a large project to tkinter, starting > with zero knowledge of tkinter.  (You are free to think: BAD IDEA. ) Well, you could be translating them to Tcl/Tk -- so on the scale of bad ideas, your's

Tkinter docs?

2023-05-23 Thread Rob Cliffe via Python-list
I have recently started converting a large project to tkinter, starting with zero knowledge of tkinter.  (You are free to think: BAD IDEA. ) I am well aware that adopting a new tool always involves a learning curve, and that one is prone to think that things are more difficult than

Re: Tkinter (related)~

2023-05-19 Thread Jack Dangler
On 5/18/23 21:11, Grant Edwards wrote: On 2023-05-19, Cameron Simpson wrote: On 18May2023 12:06, Jack Dangler wrote: I thought the OP of the tkinter thread currently running may have needed to install the tkinter package (since I had the same missing component error message), so I tried

Re: Tkinter (related)~

2023-05-18 Thread Grant Edwards
On 2023-05-19, Cameron Simpson wrote: > On 18May2023 12:06, Jack Dangler wrote: >>I thought the OP of the tkinter thread currently running may have >>needed to install the tkinter package (since I had the same missing >>component error message), so I tried to install

Re: Tkinter (related)~

2023-05-18 Thread Cameron Simpson
On 18May2023 12:06, Jack Dangler wrote: I thought the OP of the tkinter thread currently running may have needed to install the tkinter package (since I had the same missing component error message), so I tried to install the package on to my Ubu laptop - pip install tkinter Defaulting

Re: Learning tkinter

2023-05-18 Thread MRAB
On 2023-05-12 09:55, Rob Cliffe via Python-list wrote: I am trying to learn tkinter. Several examples on the internet refer to a messagebox class (tkinter.messagebox). But: Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 bit (Intel)] on win32 Type "help",

Re: Tkinter (related)~

2023-05-18 Thread Jack Dangler
On 5/18/23 12:33, Mats Wichmann wrote: On 5/18/23 10:06, Jack Dangler wrote: I didn't want to hijack another thread... I thought the OP of the tkinter thread currently running may have needed to install the tkinter package (since I had the same missing component error message), so I tried

Re: Learning tkinter

2023-05-18 Thread Mats Wichmann
On 5/18/23 08:50, Jim Schwartz wrote: This works for me. Hope it helps. from tkinter import messagebox messagebox.showerror("Hi", f"Hello World") It's probably instructive that IDLE always brings it in this way. Lib/idlelib/config_key.py:from tkinter import me

Re: Tkinter (related)~

2023-05-18 Thread Mats Wichmann
On 5/18/23 10:06, Jack Dangler wrote: I didn't want to hijack another thread... I thought the OP of the tkinter thread currently running may have needed to install the tkinter package (since I had the same missing component error message), so I tried to install the package on to my Ubu laptop

Tkinter (related)~

2023-05-18 Thread Jack Dangler
I didn't want to hijack another thread... I thought the OP of the tkinter thread currently running may have needed to install the tkinter package (since I had the same missing component error message), so I tried to install the package on to my Ubu laptop - pip install tkinter Defaulting

Re: Learning tkinter

2023-05-18 Thread Thomas Passin
On 5/18/2023 9:13 AM, Grant Edwards wrote: On 2023-05-12, Rob Cliffe via Python-list wrote: Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more informa

RE: Learning tkinter

2023-05-18 Thread Jim Schwartz
This works for me. Hope it helps. from tkinter import messagebox messagebox.showerror("Hi", f"Hello World") -Original Message- From: Python-list On Behalf Of Rob Cliffe via Python-list Sent: Friday, May 12, 2023 3:55 AM To: Python Subject: Learning tkinter

Re: Learning tkinter

2023-05-18 Thread Chris Angelico
On Thu, 18 May 2023 at 19:15, Rob Cliffe via Python-list wrote: > > I am trying to learn tkinter. > Several examples on the internet refer to a messagebox class > (tkinter.messagebox). > But: > > Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 &g

Re: Learning tkinter

2023-05-18 Thread Oscar Benjamin
On Thu, 18 May 2023 at 10:16, Rob Cliffe via Python-list wrote: > > I am trying to learn tkinter. > Several examples on the internet refer to a messagebox class > (tkinter.messagebox). > But: > > Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 &g

Re: Learning tkinter

2023-05-18 Thread Grant Edwards
On 2023-05-12, Rob Cliffe via Python-list wrote: > > Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 > bit (Intel)] on win32 > Type "help", "copyright", "credits" or "license" for more information. > >>>

Learning tkinter

2023-05-18 Thread Rob Cliffe via Python-list
I am trying to learn tkinter. Several examples on the internet refer to a messagebox class (tkinter.messagebox). But: Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or

Re: Tkinter and cv2: "not responding" popup when imshow launched from tk app

2023-03-18 Thread John O'Hagan
On Tue, 2023-03-14 at 21:54 +1100, John O'Hagan wrote: [...] > Here is minimal code that demonstrates the problem in the subject > line: > > import cv2 > from tkinter import * > > images=['a.jpg', 'b.jpg', 'c.jpg'] #change to image paths > > cv2.namedWindow('W', cv2

Re: Tkinter and cv2: "not responding" popup when imshow launched from tk app

2023-03-17 Thread John O'Hagan
t is still slightly ambiguous in explaining that when using 25ms, > keypress or not, the wait breaks at 25ms (or before that if you press > a > keyboard key). For my setup the window is stale at that point, no > controls, just a stale frame behind the tkinter window that needs to &g

Re: Tkinter and cv2: "not responding" popup when imshow launched from tk app

2023-03-16 Thread aapost
no controls, just a stale frame behind the tkinter window that needs to be destroyed or reused. Whether that is the exact behavior on all set-ups isn't clear, the note further uses the ambiguous phrasing "might". >Note: This function should be followed by a call to cv::waitKey

Re: Tkinter and cv2: "not responding" popup when imshow launched from tk app

2023-03-15 Thread aapost
On 3/15/23 07:37, John O'Hagan wrote: On Tue, 2023-03-14 at 16:22 -0400, aapost wrote: On 3/14/23 06:54, John O'Hagan wrote: Doing a quick read, tkinter is not threadsafe, so diving in to a threading solution is probably not the best approach. But just to throw out another possible

Re: Tkinter and cv2: "not responding" popup when imshow launched from tk app

2023-03-15 Thread aapost
it comes back a few seconds later. If I then click on the tkinter window titlebar, the popup changes to "'Tk' is not responding". Clicking on the button still works and after a few clicks the popup closes. [...] I think this particular popup is a Gnome thing, but AIUI most DEs ha

Re: Tkinter and cv2: "not responding" popup when imshow launched from tk app

2023-03-15 Thread John O'Hagan
On Tue, 2023-03-14 at 16:22 -0400, aapost wrote: > On 3/14/23 06:54, John O'Hagan wrote: [...] > > > > Here is minimal code that demonstrates the problem in the subject > > line: > > > > import cv2 > > from tkinter import * > > > > images

Re: Tkinter and cv2: "not responding" popup when imshow launched from tk app

2023-03-14 Thread aapost
On 3/14/23 06:54, John O'Hagan wrote: Hi list I'm trying to use cv2 to display images created as numpy arrays, from within a tkinter app (which does other things with the arrays before they are displayed as images). The arrays are colour-coded visualisations of genomes and can be over a billion

Re: Tkinter and cv2: "not responding" popup when imshow launched from tk app

2023-03-14 Thread John O'Hagan
On Tue, 2023-03-14 at 13:52 +, Weatherby,Gerard wrote: > Assuming you’re using opencv-python, I’d post query at > https://github.com/opencv/opencv-python/issues. Thanks Gerard I'm using the python3-opencv package from Debian testing. Is that github the appropriate place for this query?

Re: Tkinter and cv2: "not responding" popup when imshow launched from tk app

2023-03-14 Thread John O'Hagan
On Tue, 2023-03-14 at 08:07 -0400, Thomas Passin wrote: > On 3/14/2023 6:54 AM, John O'Hagan wrote: > > Hi list > > > > I'm trying to use cv2 to display images created as numpy arrays, > > from > > within a tkinter app (which does other things with the arrays

Re: Tkinter and cv2: "not responding" popup when imshow launched from tk app

2023-03-14 Thread Weatherby,Gerard
Assuming you’re using opencv-python, I’d post query at https://github.com/opencv/opencv-python/issues. From: Python-list on behalf of John O'Hagan Date: Tuesday, March 14, 2023 at 6:56 AM To: Python list Subject: Tkinter and cv2: "not responding" popup when imshow launched fr

Re: Tkinter and cv2: "not responding" popup when imshow launched from tk app

2023-03-14 Thread Thomas Passin
On 3/14/2023 6:54 AM, John O'Hagan wrote: Hi list I'm trying to use cv2 to display images created as numpy arrays, from within a tkinter app (which does other things with the arrays before they are displayed as images). The arrays are colour-coded visualisations of genomes and can be over

Tkinter and cv2: "not responding" popup when imshow launched from tk app

2023-03-14 Thread John O'Hagan
Hi list I'm trying to use cv2 to display images created as numpy arrays, from within a tkinter app (which does other things with the arrays before they are displayed as images). The arrays are colour-coded visualisations of genomes and can be over a billion elements in size, and I've found

Re: tkinter ttk.Treeview: changing background colour of single item when selected

2023-02-13 Thread stefalem
he selection or changing the colour of other > selected items. It seems this isn't possible. ok sorry. As another alternative I had thought of this: from tkinter import * from tkinter.ttk import * root = Tk() t = Treeview(root) t.insert('', 0, iid='item1', text='item1') t.insert('', 1, text='item2')

Re: tkinter ttk.Treeview: changing background colour of single item when selected

2023-02-12 Thread John O'Hagan
ent): > w = event.widget > w.old_bg = w.cget('bg') > w[BG_KEY] = BUTTON_HOVER  # Color you have chosen > > def on_leave(event): > w = event.widget > _bg = w.old_bg > w[BG_KEY] = _bg > > Thank you again for your reply, Thomas. I didn'

Re: tkinter ttk.Treeview: changing background colour of single item when selected

2023-02-12 Thread Thomas Passin
On 2/12/2023 6:10 AM, John O'Hagan wrote: On Mon, 2023-02-06 at 10:19 -0800, stefalem wrote: Il giorno sabato 4 febbraio 2023 alle 11:43:29 UTC+1 John O'Hagan ha scritto: ... Is there another way to do what I want? from tkinter import * from tkinter.ttk import * root = Tk() t = Treeview

Re: tkinter ttk.Treeview: changing background colour of single item when selected

2023-02-12 Thread John O'Hagan
On Mon, 2023-02-06 at 10:19 -0800, stefalem wrote: > Il giorno sabato 4 febbraio 2023 alle 11:43:29 UTC+1 John O'Hagan ha > scritto: > ... > > > Is there another way to do what I want?  > > from tkinter import * > from tkinter.ttk import * > > root = Tk() &

Re: tkinter ttk.Treeview: changing background colour of single item when selected

2023-02-06 Thread stefalem
I apologize for the 3 messages sent, I could not access the usual news server and with Google Groups I messed up :) -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter ttk.Treeview: changing background colour of single item when selected

2023-02-06 Thread stefalem
> Is there another way to do what I want? try this: from tkinter import * from tkinter.ttk import * root = Tk() t = Treeview(root) t.insert('', 0, iid='item1', text='item1') t.insert('', 1, text='item2') t.tag_configure('flashtag', background='red') t.pack() def flash(): tags = t.i

Re: tkinter ttk.Treeview: changing background colour of single item when selected

2023-02-06 Thread stefalem
Il giorno sabato 4 febbraio 2023 alle 11:43:29 UTC+1 John O'Hagan ha scritto: ... > Is there another way to do what I want? from tkinter import * from tkinter.ttk import * root = Tk() t = Treeview(root) t.insert('', 0, iid='item1', text='item1') t.insert('', 1, text='item2') t.tag_config

Re: tkinter ttk.Treeview: changing background colour of single item when selected

2023-02-04 Thread Thomas Passin
flashing. If you select it, you don't see the flashing anymore. from tkinter import * from tkinter.ttk import * root = Tk() t = Treeview(root) t.insert('', 0, iid='item1', text='item1') t.insert('', 1, text='item2') t.tag_configure('flashtag', background='red') t.pack() def flash(): tags = t.item

tkinter ttk.Treeview: changing background colour of single item when selected

2023-02-04 Thread John O'Hagan
no effect. I want the item to keep flashing even when selected. The code below is a minimal example of the issue. It displays a Treeview containing two items with the first one flashing. If you select it, you don't see the flashing anymore. from tkinter import * from tkinter.ttk import * root = Tk

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-19 Thread Thomas Passin
On 1/19/2023 10:21 AM, Dan Kolis wrote: Hello ! Works fine on my work machine. (Ubuntu 20.04 / 32 G / 32 CPUS). Scalene (https://github.com/plasma-umass/scalene) shows it using 9 MB of memory. I ran your test program here and it generates 25 windows on my machine, and I can click "run" at

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-19 Thread Dan Kolis
Hello ! > Works fine on my work machine. (Ubuntu 20.04 / 32 G / 32 CPUS). Scalene > (https://github.com/plasma-umass/scalene) shows it using 9 MB of memory. > I ran your test program here and it generates 25 windows on my machine, > and I can click "run" at least half a dozen times. I tried

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-19 Thread Thomas Passin
orks fine on my work machine. (Ubuntu 20.04 / 32 G / 32 CPUS). Scalene (https://github.com/plasma-umass/scalene) shows it using 9 MB of memory. From: Python-list on behalf of Michael Torrie Date: Wednesday, January 18, 2023 at 8:58 PM To: python-list@python.org Subject: Re: A natural magnet for

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-19 Thread Thomas Passin
it using 9 MB of memory. From: Python-list on behalf of Michael Torrie Date: Wednesday, January 18, 2023 at 8:58 PM To: python-list@python.org Subject: Re: A natural magnet for the craziest TKinter lovers out there *** Attention: This is an external email. Use caution responding, opening a

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-19 Thread Weatherby,Gerard
for the craziest TKinter lovers out there *** Attention: This is an external email. Use caution responding, opening attachments or clicking on links. *** On 1/18/23 18:01, Dan Kolis wrote: > Hangs after maybe between 4 and 50 screen rewrites. sometimes CTRL C under > Ubuntu starts it up

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-18 Thread Thomas Passin
On 1/18/2023 11:46 PM, Thomas Passin wrote: On 1/18/2023 8:56 PM, Michael Torrie wrote: On 1/18/23 18:01, Dan Kolis wrote: Hangs after maybe between 4 and 50 screen rewrites. sometimes CTRL C under Ubuntu starts it up again. Click go rewrites al the fonts the thing can find in a few

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-18 Thread Thomas Passin
On 1/18/2023 8:56 PM, Michael Torrie wrote: On 1/18/23 18:01, Dan Kolis wrote: Hangs after maybe between 4 and 50 screen rewrites. sometimes CTRL C under Ubuntu starts it up again. Click go rewrites al the fonts the thing can find in a few windows Repeated. Not sure what you mean by

Re: A natural magnet for the craziest TKinter lovers out there

2023-01-18 Thread Michael Torrie
On 1/18/23 18:01, Dan Kolis wrote: > Hangs after maybe between 4 and 50 screen rewrites. sometimes CTRL C under > Ubuntu starts it up again. Click go rewrites al the fonts the thing can find > in a few windows Repeated. > Not sure what you mean by "screen rewrites." I ran your test

A natural magnet for the craziest TKinter lovers out there

2023-01-18 Thread Dan Kolis
Hangs after maybe between 4 and 50 screen rewrites. sometimes CTRL C under Ubuntu starts it up again. Click go rewrites al the fonts the thing can find in a few windows Repeated. TKinter has a cult following. I don''t really expect others to fix my problems, but you know, es since its

Re: Tkinter GUI freezing, used Thread then encountered RuntimeError: threads can only be started once

2023-01-10 Thread MRAB
On 2023-01-11 00:13, Cameron Simpson wrote: On 10Jan2023 18:32, MRAB wrote: I don't like how you're passing Thread...start as an argument. IMHO, it would be better/cleaner to pass a plain function, even if the only thing that function does is to start the thread. Yes, and this is likely the

Re: Tkinter GUI freezing, used Thread then encountered RuntimeError: threads can only be started once

2023-01-10 Thread Cameron Simpson
On 10Jan2023 18:32, MRAB wrote: I don't like how you're passing Thread...start as an argument. IMHO, it would be better/cleaner to pass a plain function, even if the only thing that function does is to start the thread. Yes, and this is likely the thing causing the cited exception "threads

Re: Tkinter GUI freezing, used Thread then encountered RuntimeError: threads can only be started once

2023-01-10 Thread MRAB
On 2023-01-10 14:57, Abhay Singh wrote: Here is the entire code snippet of the same. Please help def change_flag(top_frame, bottom_frame, button1, button2, button3, button4, controller): global counter, canvas, my_image, chosen, flag, directory canvas.delete('all') button5['state'] =

Tkinter GUI freezing, used Thread then encountered RuntimeError: threads can only be started once

2023-01-10 Thread Abhay Singh
Here is the entire code snippet of the same. Please help def change_flag(top_frame, bottom_frame, button1, button2, button3, button4, controller): global counter, canvas, my_image, chosen, flag, directory canvas.delete('all') button5['state'] = DISABLED counter += 1 chosen, options_text =

Re: asyncio and tkinter (was: What should go to stdout/stderr and why Python logging write everything to stderr?)

2023-01-05 Thread Thomas Passin
On 1/5/2023 7:52 PM, Stefan Ram wrote: Thomas Passin writes: On 1/5/2023 4:24 PM, Stefan Ram wrote: You often can replace threads in tkinter by coroutines using asyncio when you write a replacement for the mainloop of tkinter that uses asyncio. Now, try to read only the official documentation

Re: Python 3.11.0 installation and Tkinter does not work

2022-11-23 Thread Jason Friedman
> > I want learn python for 4 weeks and have problems, installing Tkinter. If > I installed 3.11.0 for my windows 8.1 from python.org and type > > >>> import _tkinter > > Traceback (most recent call last): > >File "", line 1, in >

Re: Python 3.11.0 installation and Tkinter does not work

2022-11-23 Thread Barry Scott
> On 23 Nov 2022, at 06:31, Stefan Ram wrote: > > darkst...@o2online.de writes: >> I want learn python for 4 weeks and have problems, installing Tkinter. If I= >> installed 3.11.0 for my windows 8.1 from python.org and type > > Ok, so you already installe

Re: Python 3.11.0 installation and Tkinter does not work

2022-11-22 Thread Barry
install > Python from python.org. > > Then, after the installation, you also should make sure that > you actually use this installed version. > > import sys > sys.version_info > import tkinter > > It is possible that you have installed a different version > of

Re: Python 3.11.0 installation and Tkinter does not work

2022-11-22 Thread Mats Wichmann
On 11/21/22 14:41, Thomas Passin wrote: On 11/21/2022 1:24 PM, Stefan Ram wrote: darkst...@o2online.de writes: import _tkinter    I don't know why you get this error message. Here, I do not    get an error message from that line. However, the normal way    to use tkinter, as far as I know

Re: Python 3.11.0 installation and Tkinter does not work

2022-11-21 Thread DFS
On 11/21/2022 12:59 PM, darkst...@o2online.de wrote: Dear list, I want learn python for 4 weeks and have problems, installing Tkinter. If I installed 3.11.0 for my windows 8.1 from python.org and type   >>> import _tkinter > Traceback (most recent call last):

Re: Python 3.11.0 installation and Tkinter does not work

2022-11-21 Thread Thomas Passin
On 11/21/2022 1:24 PM, Stefan Ram wrote: darkst...@o2online.de writes: import _tkinter I don't know why you get this error message. Here, I do not get an error message from that line. However, the normal way to use tkinter, as far as I know, is without the underscore! You can

Python 3.11.0 installation and Tkinter does not work

2022-11-21 Thread darkstone
Dear list, I want learn python for 4 weeks and have problems, installing Tkinter. If I installed 3.11.0 for my windows 8.1 from python.org and type   >>> import _tkinter > Traceback (most recent call last): >    File "", line 1, in > Import

Re: What's tkinter doing in \Lib\site-packages\future\moves ?

2022-11-08 Thread DFS
On 11/7/2022 10:48 PM, DFS wrote: 3.9.13 Never mind. User error - I didn't install it in the first place. -- https://mail.python.org/mailman/listinfo/python-list

Re: What's tkinter doing in \Lib\site-packages\future\moves ?

2022-11-07 Thread Chris Angelico
On Tue, 8 Nov 2022 at 15:12, DFS wrote: > > 3.9.13 > My guess? Because you can "import tkinter" in Py3 but "import Tkinter" in Py2. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

What's tkinter doing in \Lib\site-packages\future\moves ?

2022-11-07 Thread DFS
3.9.13 -- https://mail.python.org/mailman/listinfo/python-list

Re: Python3.6 tkinter bug?

2022-09-22 Thread Peter Smith
uire Tk > > > > pack [frame .f1] > > pack [frame .f2] > > > > pack [checkbutton .f1.c1 -text "A" ] > > pack [checkbutton .f1.c2 -text "B" ] > > > > pack [checkbutton .f2.c1 -text "C" ] > > pack [checkbutton .f

Re: Python3.6 tkinter bug?

2022-09-22 Thread Peter Smith
uire Tk > > > > pack [frame .f1] > > pack [frame .f2] > > > > pack [checkbutton .f1.c1 -text "A" ] > > pack [checkbutton .f1.c2 -text "B" ] > > > > pack [checkbutton .f2.c1 -text "C" ] > > pack [checkbutton .f

Re: Tkinter not working

2022-08-01 Thread 2QdxY4RzWzUUiLuE
On 2022-08-01 at 18:53:47 +0100, Matthew Barnett wrote: > On 01/08/2022 13:17, Daniel Lee wrote: > > Hello, I my code with tkinter was working before, and now, it has many > > errors in it. I’m not sure what has happened. The results after running are > > below: > &g

Re: Tkinter not working

2022-08-01 Thread Matthew Barnett
On 01/08/2022 13:17, Daniel Lee wrote: Hello, I my code with tkinter was working before, and now, it has many errors in it. I’m not sure what has happened. The results after running are below: "D:\Python Projects\tes\venv\Scripts\python.exe" "D:/Python Projects/tes/main.py&q

Tkinter not working

2022-08-01 Thread Daniel Lee
Hello, I my code with tkinter was working before, and now, it has many errors in it. I’m not sure what has happened. The results after running are below: "D:\Python Projects\tes\venv\Scripts\python.exe" "D:/Python Projects/tes/main.py" Traceback (most recent call last

Re: Tkinter - cannot import tklib

2022-06-21 Thread David
On Tue, 21 Jun 2022 at 09:22, Wolfgang Grafen wrote: > I am an experienced Python user and struggle with following statement: > > >>> from tklib import * > Traceback (most recent call last): > File "", line 1, in > ModuleNotFoundError: No module named 'tklib' [...] > I did not find a python

Re: Tkinter - cannot import tklib

2022-06-20 Thread Dennis Lee Bieber
e installed by default with every python installation >which has Tkinter integrated. > >https://tk-tutorial.readthedocs.io/en/latest/intro/intro.html?highlight=app# > >First time that I cannot help myself. Please help, what do I do wrong? > From what I can s

Re: Tkinter - cannot import tklib

2022-06-20 Thread MRAB
hown above on following of my Python installations: Anaconda Python 3.8.3, Portable Python 3.9, Python 3.10.1, Python 2.7.10 with the same negative result. I also tried to find help by googling - without success. Also I did not find a python module called tklib to install. Tkinter, ttk is wo

Tkinter - cannot import tklib

2022-06-20 Thread Wolfgang Grafen
ython installations: Anaconda Python 3.8.3, Portable Python 3.9, Python 3.10.1, Python 2.7.10 with the same negative result. I also tried to find help by googling - without success. Also I did not find a python module called tklib to install. Tkinter, ttk is working fine. There are numerous example

Re: Tkinter module test: widget class not inserted in application frame

2022-06-18 Thread Rich Shepard
On Sat, 18 Jun 2022, Peter J. Holzer wrote: There is a comma (U+002C) here ... And a dot (U+002E) here. That was a typo when I wrote the message. And I usually add a space after commas and surrounding equal signs, all for easier reading. Thank you, Rich --

  1   2   3   4   5   6   7   8   9   10   >