Re: Tkinter long-running window freezes

2021-02-25 Thread Christian Gollwitzer
Am 26.02.21 um 06:15 schrieb John O'Hagan: On Thu, 25 Feb 2021 21:57:19 +0100 Christian Gollwitzer wrote: I think it is not yet clear, if this is a bug in Tkinter or in Tcl/Tk, the underlying scripting language. It might also be platform dependent. Are you on Windows? Here is an equivalent Tcl

Re: name for a mutually inclusive relationship

2021-02-25 Thread Chris Angelico
On Fri, Feb 26, 2021 at 3:32 PM Ethan Furman wrote: > > On 2/25/21 7:06 PM, Joe Pfeiffer wrote: > > Ethan Furman writes: > > >> Like I said, at this moment I don't have a good example, only an awareness > >> that such a thing could exist and I don't know the name for it (if it has > >> one). > >

Re: error of opening Python

2021-02-25 Thread Mladen Gogala via Python-list
On Thu, 25 Feb 2021 17:22:35 +, Botao Liu wrote: > Dear Python team, > > This is my first time using Python, I tried to launch Python and it > showed "Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC > v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or > "lic

Re: Tkinter long-running window freezes

2021-02-25 Thread John O'Hagan
On Thu, 25 Feb 2021 21:57:19 +0100 Christian Gollwitzer wrote: > Am 24.02.21 um 12:35 schrieb John O'Hagan: > > Hi list > > > > I have a 3.9 tkinter interface that displays data from an arbitrary > > number of threads, each of which runs for an arbitrary period of > > time. A frame opens in the

Re: name for a mutually inclusive relationship

2021-02-25 Thread Ethan Furman
On 2/25/21 7:06 PM, Joe Pfeiffer wrote: Ethan Furman writes: Like I said, at this moment I don't have a good example, only an awareness that such a thing could exist and I don't know the name for it (if it has one). So far I have seen that there are even fewer good use-cases than I might hav

Re: name for a mutually inclusive relationship

2021-02-25 Thread Joe Pfeiffer
Ethan Furman writes: > On 2/24/21 1:54 PM, 2qdxy4rzwzuui...@potatochowder.com wrote: >> Ethan Furman wrote: > >>> I didn't say it was a good example. ;-) Hopefully it gets the idea across. >> Ditto. ;-) >> IMO, the whole idea of "my program has two options, and the user has >> to >> specify bo

Re: name for a mutually inclusive relationship

2021-02-25 Thread Joe Pfeiffer
Ethan Furman writes: > I'm looking for a name for a group of options that, when one is specified, > all of them must be specified. I don't fully understand the question (yes, I read the part I snipped). Why is this not just a single option? Or is it hierarchical or something so option 1 impli

Re: Tkinter long-running window freezes

2021-02-25 Thread MRAB
On 2021-02-25 20:57, Christian Gollwitzer wrote: Am 24.02.21 um 12:35 schrieb John O'Hagan: Hi list I have a 3.9 tkinter interface that displays data from an arbitrary number of threads, each of which runs for an arbitrary period of time. A frame opens in the root window when each thread starts

Re: error of opening Python

2021-02-25 Thread Alan Gauld via Python-list
On 25/02/2021 17:22, Botao Liu wrote: > Type "help", "copyright", "credits" or "license" for more information." Follow the instructions and type "help" at the >>> prompt. Then follow the instructions which it displays. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/

Where is the problem?

2021-02-25 Thread RD
Python 3.4.3 on WinXP. I create a Tk canvas and draw on it with create_text(), create_line(), and create_polygon with fill and stipple. So far, so good, looks fine on the screen. So I go to send it to a postsctript file: bmap.postscript(file="tmp.ps", colormode='color') It generates a file, n

RE: name for a mutually inclusive relationship

2021-02-25 Thread Avi Gross via Python-list
YAGNI? True, Chris, I never have. And if I ever did, I might not even know someone has implemented similar functionality with 86 optional function arguments that fine-tune what happens in various cases and what error messages to supply, LOL! So, I would end up re-implementing it myself. But isn'

Re: Tkinter long-running window freezes

2021-02-25 Thread John O'Hagan
On Thu, 25 Feb 2021 11:06:05 -0500 Richard Damon wrote: > On 2/24/21 6:35 AM, John O'Hagan wrote: > > Here is some minimal, non-threaded code that reproduces the problem > > on my system (Xfce4 on Debian testing): > > > > from tkinter import * > > from random import randint > > > > root = Tk() >

Re: Tkinter long-running window freezes

2021-02-25 Thread John O'Hagan
On Thu, 25 Feb 2021 09:54:15 -0500 Terry Reedy wrote: > On 2/24/2021 6:53 PM, John O'Hagan wrote: > > On Wed, 24 Feb 2021 11:03:30 -0500 > > Terry Reedy wrote: > > > >> On 2/24/2021 6:35 AM, John O'Hagan wrote: > > [...] > >> > >> I am trying this out on Windows 10, with a wider label (so

Re: error of opening Python

2021-02-25 Thread Christian Gollwitzer
Am 25.02.21 um 18:22 schrieb Botao Liu: Dear Python team, This is my first time using Python, I tried to launch Python and it showed "Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more informati

Re: error of opening Python

2021-02-25 Thread Michael F. Stemper
On 25/02/2021 11.22, Botao Liu wrote: Dear Python team, This is my first time using Python, I tried to launch Python and it showed "Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information

Re: Tkinter long-running window freezes

2021-02-25 Thread Christian Gollwitzer
Am 24.02.21 um 12:35 schrieb John O'Hagan: Hi list I have a 3.9 tkinter interface that displays data from an arbitrary number of threads, each of which runs for an arbitrary period of time. A frame opens in the root window when each thread starts and closes when it stops. Widgets in the frame an

Does anyone know if there Is a 'Code Snippet' add-in for PyCharm

2021-02-25 Thread DonK
Thank you Don -- https://mail.python.org/mailman/listinfo/python-list

error of opening Python

2021-02-25 Thread Botao Liu
Dear Python team, This is my first time using Python, I tried to launch Python and it showed "Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information." I don't know what this meant and how

GridSearchCV generates unexpected different best parameters by only changing the parameters order in param_grid. Please help!

2021-02-25 Thread Yi Li
I am using GridSearchCV to find the best parameter setting of my sklearn.pipeline estimator. The pipeline consists of data transformation, UMAP dimension reduction and Kmeans clustering. The final Kmeans clustering results are scored using silhouette_score. I tried to verify the whole pipeline/G

GridSearchCV generates unexpected different best parameters by only changing the parameters order in param_grid. Where did I make mistake and how to fix this unexpected results?

2021-02-25 Thread Yi Li
I am using GridSearchCV to find the best parameter setting of my sklearn.pipeline estimator. The pipeline consists of data transformation, UMAP dimension reduction and Kmeans clustering. The final Kmeans clustering results are scored using silhouette_score. I tried to verify the whole pipeline/G

Re: Tkinter long-running window freezes

2021-02-25 Thread Richard Damon
On 2/24/21 6:35 AM, John O'Hagan wrote: > Hi list > > I have a 3.9 tkinter interface that displays data from an arbitrary > number of threads, each of which runs for an arbitrary period of time. > A frame opens in the root window when each thread starts and closes > when it stops. Widgets in the fr

Re: Tkinter long-running window freezes

2021-02-25 Thread Terry Reedy
On 2/24/2021 6:53 PM, John O'Hagan wrote: On Wed, 24 Feb 2021 11:03:30 -0500 Terry Reedy wrote: On 2/24/2021 6:35 AM, John O'Hagan wrote: [...] I am trying this out on Windows 10, with a wider label (so I can move the window) and a button that changes when pressed, and a sequential counter.

Re: comparing two lists

2021-02-25 Thread Peter Otten
On 25/02/2021 01:42, Davor Levicki wrote: i have two lists list1 = ['01:15', 'abc', '01:15', 'def', '01:45', 'ghi' ] list2 = ['01:15', 'abc', '01:15', 'uvz', '01:45', 'ghi' ] and when I loop through the list list_difference = [] for item in list1: if item not in list2: list_differen