Re: GUI: I am also looking for a nudge into the best (GUI) direction.

2020-10-31 Thread Michael Torrie
On 10/31/20 5:42 PM, Greg Ewing wrote: > On 1/11/20 9:44 am, Barry Scott wrote: > >> It does not appear to me that use native widgets is important for a tool kit. > > It's not strictly necessary. However, recreating the exact appearance > and behaviour of native widgets is a lot of work, and diff

Re: Best way to determine user's screensize?

2020-10-31 Thread Dan Stromberg
On Sat, Oct 31, 2020 at 4:18 PM Peter J. Holzer wrote: > On 2020-10-31 17:12:36 -0500, 2qdxy4rzwzuui...@potatochowder.com wrote: > > On 2020-10-31 at 19:24:34 +0100, > > "Peter J. Holzer" wrote: > > > On 2020-10-31 11:58:41 -0500, 2qdxy4rzwzuui...@potatochowder.com > wrote: > > > > I never claim

Re: Find word by given characters

2020-10-31 Thread Terry Reedy
On 10/31/2020 8:36 PM, Bischoop wrote: I'm working on a script i which user inputs letters and then a printed words containing those letters. The scripts works however I can't solve one problem , it prints also words in which these letters occur more than once. --- Fore example: L

Re: Find word by given characters

2020-10-31 Thread MRAB
On 2020-11-01 00:36, Bischoop wrote: I'm working on a script i which user inputs letters and then a printed words containing those letters. The scripts works however I can't solve one problem , it prints also words in which these letters occur more than once. --- Fore example: Let

Find word by given characters

2020-10-31 Thread Bischoop
I'm working on a script i which user inputs letters and then a printed words containing those letters. The scripts works however I can't solve one problem , it prints also words in which these letters occur more than once. --- Fore example: Letters: at Output: auto, autobahn. -

Re: Best way to determine user's screensize?

2020-10-31 Thread Serhiy Storchaka
30.10.20 17:56, flaskee via Python-list пише: > Perhaps a more tactical approach would best to figure > out how to do cross-platform python apps. > > What is the best approach to determining the user's available screensize, > when they open your python application? > > Note that the "desktop" app

Re: GUI: I am also looking for a nudge into the best (GUI) direction.

2020-10-31 Thread Greg Ewing
On 1/11/20 9:44 am, Barry Scott wrote: It does not appear to me that use native widgets is important for a tool kit. It's not strictly necessary. However, recreating the exact appearance and behaviour of native widgets is a lot of work, and difficult to do well -- most toolkits that attempt th

Re: Best way to determine user's screensize?

2020-10-31 Thread Peter J. Holzer
On 2020-10-31 17:12:36 -0500, 2qdxy4rzwzuui...@potatochowder.com wrote: > On 2020-10-31 at 19:24:34 +0100, > "Peter J. Holzer" wrote: > > On 2020-10-31 11:58:41 -0500, 2qdxy4rzwzuui...@potatochowder.com wrote: > > > I never claimed it was easy. Yes, the author of an MUA has to make a > > > guess

Re: Best way to determine user's screensize?

2020-10-31 Thread 2QdxY4RzWzUUiLuE
On 2020-10-31 at 19:24:34 +0100, "Peter J. Holzer" wrote: > On 2020-10-31 11:58:41 -0500, 2qdxy4rzwzuui...@potatochowder.com wrote: > > On 2020-10-31 at 14:37:52 +0100, > > "Peter J. Holzer" wrote: > > > > > On 2020-10-31 07:51:38 -0500, 2qdxy4rzwzuui...@potatochowder.com wrote: > > > > > > Th

Re: GUI: I am also looking for a nudge into the best (GUI) direction.

2020-10-31 Thread Barry Scott
> On 31 Oct 2020, at 16:37, Igor Korot wrote: > > Hi, Barry, > > On Sat, Oct 31, 2020, 3:39 AM Barry Scott > wrote: > > > > On 29 Oct 2020, at 15:54, flaskee via Python-list > > wrote: > > > > Hello! > > > > I've been reading

Re: Why x+=1 doesn't return x value instead of an object

2020-10-31 Thread dn via Python-list
On 31/10/2020 19:41, Chris Angelico wrote: On Sat, Oct 31, 2020 at 4:44 PM dn via Python-list wrote: Free advice: whatever you do, don't call @Chris a walrus! Yeah... I do have quite a moustache, but it doesn't merit a high title like that! :) It's the tusks I'd be worried about! Is Dracula

Re: Best way to determine user's screensize?

2020-10-31 Thread Random832
On Sat, Oct 31, 2020, at 01:26, Igor Korot wrote: > This one is for "JAVAsucks" - > https://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html > This one is for wxWidgets - https://docs.wxwidgets.org/3.0/overview_sizer.html > This one is for Qt - https://doc.qt.io/qt-5/layout.html > This on

Re: Best way to determine user's screensize?

2020-10-31 Thread Peter J. Holzer
On 2020-10-31 11:52:31 -0700, Ethan Furman wrote: > On 10/31/20 11:24 AM, Peter J. Holzer wrote: > > On 2020-10-31 11:58:41 -0500, 2qdxy4rzwzuui...@potatochowder.com wrote: > > > I don't think we're disagreeing too much here, either. IMO, the user > > > should be in control, whether by config file

Re: Best way to determine user's screensize?

2020-10-31 Thread Peter J. Holzer
On 2020-10-31 11:54:59 -0500, Igor Korot wrote: > On Sat, Oct 31, 2020, 8:40 AM Peter J. Holzer wrote: > > > On 2020-10-31 07:51:38 -0500, 2qdxy4rzwzuui...@potatochowder.com wrote: > > > On 2020-10-31 at 13:02:03 +0100, > > > "Peter J. Holzer" wrote: > > > > On 2020-10-31 12:30:43 +1100, Chris A

Re: Best way to determine user's screensize?

2020-10-31 Thread Ethan Furman
On 10/31/20 11:24 AM, Peter J. Holzer wrote: On 2020-10-31 11:58:41 -0500, 2qdxy4rzwzuui...@potatochowder.com wrote: I don't think we're disagreeing too much here, either. IMO, the user should be in control, whether by config file or command line or whatever, Config files and command lines

Re: Best way to determine user's screensize?

2020-10-31 Thread Peter J. Holzer
On 2020-10-31 11:58:41 -0500, 2qdxy4rzwzuui...@potatochowder.com wrote: > On 2020-10-31 at 14:37:52 +0100, > "Peter J. Holzer" wrote: > > > On 2020-10-31 07:51:38 -0500, 2qdxy4rzwzuui...@potatochowder.com wrote: > > > > The intial/default window should be big enough to contain the > > > initial/

Re: Best way to determine user's screensize?

2020-10-31 Thread Chris Angelico
On Sun, Nov 1, 2020 at 4:10 AM Igor Korot wrote: > > Hi, > > On Sat, Oct 31, 2020, 8:40 AM Peter J. Holzer wrote: > > > On 2020-10-31 07:51:38 -0500, 2qdxy4rzwzuui...@potatochowder.com wrote: > > > On 2020-10-31 at 13:02:03 +0100, > > > "Peter J. Holzer" wrote: > > > > On 2020-10-31 12:30:43 +11

Re: Best way to determine user's screensize?

2020-10-31 Thread Tim Chase
On 2020-10-31 15:22, Grant Edwards wrote: > > A MUA may have to display hundreds of mailboxes, and maybe tens of > > thousands of mails in a single mailbox. > > No. It doesn't. It has to display a tree widget that shows N items > and holds tens of thousands of items, or a scrolling list widget >

Re: Best way to determine user's screensize?

2020-10-31 Thread Igor Korot
Hi, On Sat, Oct 31, 2020, 12:01 PM <2qdxy4rzwzuui...@potatochowder.com> wrote: > On 2020-10-31 at 14:37:52 +0100, > "Peter J. Holzer" wrote: > > > On 2020-10-31 07:51:38 -0500, 2qdxy4rzwzuui...@potatochowder.com wrote: > > > > The intial/default window should be big enough to contain the > > > i

Re: Best way to determine user's screensize?

2020-10-31 Thread Igor Korot
Hi, On Sat, Oct 31, 2020, 11:40 AM Grant Edwards wrote: > On 2020-10-31, Peter J. Holzer wrote: > > > Very often this is not the case: An image viewer will be used to > > display images which are larger than the screen. > > Tell the image widget what image you want to display, and then forget >

Re: Best way to determine user's screensize?

2020-10-31 Thread Igor Korot
Hi, On Sat, Oct 31, 2020, 8:40 AM Peter J. Holzer wrote: > On 2020-10-31 07:51:38 -0500, 2qdxy4rzwzuui...@potatochowder.com wrote: > > On 2020-10-31 at 13:02:03 +0100, > > "Peter J. Holzer" wrote: > > > On 2020-10-31 12:30:43 +1100, Chris Angelico wrote: > > > > There is no valid way for an app

Re: Best way to determine user's screensize?

2020-10-31 Thread Peter J. Holzer
On 2020-10-31 01:20:39 -, Grant Edwards wrote: > On 2020-10-30, Peter J. Holzer wrote: > > > So, assuming the user is invoking the application for the first time, > > how should an application determine how much of the screen it should > > use? > > You arrange the widgets the way you want th

Re: Best way to determine user's screensize?

2020-10-31 Thread Igor Korot
Hi, On Sat, Oct 31, 2020, 11:33 AM Grant Edwards wrote: > On 2020-10-31, songbird wrote: > > Chris Angelico wrote: > > ... > >> I add my voice to those who detest applications that think they know > >> best and decide that they own the entire screen. It is incredibly > >> annoying. > > > > do y

Re: Best way to determine user's screensize?

2020-10-31 Thread Igor Korot
Hi, On Sat, Oct 31, 2020, 8:00 AM Chris Angelico wrote: > On Sat, Oct 31, 2020 at 11:53 PM <2qdxy4rzwzuui...@potatochowder.com> > wrote: > > > > On 2020-10-31 at 13:02:03 +0100, > > "Peter J. Holzer" wrote: > > > > > On 2020-10-31 12:30:43 +1100, Chris Angelico wrote: > > > > > > There is no va

Re: Best way to determine user's screensize?

2020-10-31 Thread 2QdxY4RzWzUUiLuE
On 2020-10-31 at 14:37:52 +0100, "Peter J. Holzer" wrote: > On 2020-10-31 07:51:38 -0500, 2qdxy4rzwzuui...@potatochowder.com wrote: > > The intial/default window should be big enough to contain the > > initial/default content, regardless of the configuration of the > > screen(s)/monitor(s). > >

Re: GUI: I am also looking for a nudge into the best (GUI) direction.

2020-10-31 Thread Igor Korot
Hi, Barry, On Sat, Oct 31, 2020, 3:39 AM Barry Scott wrote: > > > > On 29 Oct 2020, at 15:54, flaskee via Python-list < > python-list@python.org> wrote: > > > > Hello! > > > > I've been reading the GUI toolkit posts. > > > > If anyone can give me a push in the right python direction on > > my ne

Re: Can property getters and setters have additional arguments?

2020-10-31 Thread Chris Angelico
On Sun, Nov 1, 2020 at 3:46 AM wrote: > > I asked this question over on the python-forum-io group but haven't gotten > much in the way of answers. I hope someone here can advise me. > > I am trying to implement getters and setters in a class using a numpy array > as the base instance value, but I

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-31, Peter J. Holzer wrote: > You still haven't answered the question: Where should the initial window > size come from? The GUI toolkit used by the application calculates a "desired" window size based on the widgets and layout constraints. That desire is passed to the window manager,

Re: Best way to determine user's screensize?

2020-10-31 Thread Ethan Furman
On 10/30/20 6:24 PM, Grant Edwards wrote: On 2020-10-30, flaskee via Python-list wrote: but allow the user to alter things, via preferences. If you want to remember when a user resizes the application and re-open with that same geometry, that's OK. Doin't it "via preferences" is right out.

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-31, Random832 wrote: > On Fri, Oct 30, 2020, at 20:18, Igor Korot wrote: >> Hi, >> >> On Fri, Oct 30, 2020 at 6:59 PM Peter J. Holzer wrote: >> > So, assuming the user is invoking the application for the first time, >> > how should an application determine how much of the screen it sh

Re: Best way to determine user's screensize?

2020-10-31 Thread Chris Angelico
On Sun, Nov 1, 2020 at 3:35 AM Grant Edwards wrote: > > On 2020-10-31, Chris Angelico wrote: > > > >> do you object to a window being put in the approximate > >> center of the screen? > >> > > > > If that's where my window manager chooses to put it, great! The > > application just says "I want a

Can property getters and setters have additional arguments?

2020-10-31 Thread pjfarley3
I asked this question over on the python-forum-io group but haven't gotten much in the way of answers. I hope someone here can advise me. I am trying to implement getters and setters in a class using a numpy array as the base instance value, but I am not able to pass an array index argument to th

RE: Can property getters and setters have additional arguments?

2020-10-31 Thread pjfarley3
Apologies if you receive two copies of this message, but I sent it almost 10 hours ago and still have not seen it come back to me or appear in the archives. I would appreciate any help or RTFM you can provide. Peter > -Original Message- > From: Peter Farley > Sent: Saturday, October 31,

Re: Best way to determine user's screensize?

2020-10-31 Thread Terry Reedy
On 10/30/2020 12:05 PM, Grant Edwards wrote: On 2020-10-30, flaskee via Python-list wrote: What is the best approach to determining the user's available screensize, when they open your python application? IDLE, based on tkinter based on tcl/tk has a feature to vertically zoom an editor wind

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-31, Peter J. Holzer wrote: > Very often this is not the case: An image viewer will be used to > display images which are larger than the screen. Tell the image widget what image you want to display, and then forget about it. Let the toolkit and window manager do their jobs. > A MUA m

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-30, flaskee via Python-list wrote: > Funny thing about people who bitch and complain > and offer no help, Layout your widgets using appropriate sizers and constraints, and then let them and the window manager do their jobs. You shouldn't be messing about with window sizes and location

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-31, Chris Angelico wrote: > >> do you object to a window being put in the approximate >> center of the screen? >> > > If that's where my window manager chooses to put it, great! The > application just says "I want a window of this size" But let the widget/toolkit layout engine figure o

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-30, flaskee via Python-list wrote: > In odd screen sizes or multi-monitor situations, > I make the best guess, Stop guessing. Let the window manager, and layout algorithm do the jobs for which they were designed. > but allow the user to alter things, via preferences. If you want to

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-30, Peter J. Holzer wrote: > So, assuming the user is invoking the application for the first time, > how should an application determine how much of the screen it should > use? You arrange the widgets the way you want them using the user's settings for the toolkit and let the sizers f

Re: Best way to determine user's screensize?

2020-10-31 Thread Grant Edwards
On 2020-10-31, songbird wrote: > Chris Angelico wrote: > ... >> I add my voice to those who detest applications that think they know >> best and decide that they own the entire screen. It is incredibly >> annoying. > > do you object to a window being put in the approximate > center of the screen?

Re: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

2020-10-31 Thread Mats Wichmann
On 10/30/20 1:38 PM, Gian_Xatzak. wrote: >When I tried to download  matplotlib, it show me that message in the end: > >  > >ERROR: Command errored out with exit status 1: python setup.py egg_info >Check the logs for full command output. > >  > >*I have Windows 10, Python

Re: Best way to determine user's screensize?

2020-10-31 Thread Mats Wichmann
On 10/30/20 6:47 PM, songbird wrote: > Chris Angelico wrote: > ... >> I add my voice to those who detest applications that think they know >> best and decide that they own the entire screen. It is incredibly >> annoying. > > do you object to a window being put in the approximate > center of the

Re: Best way to determine user's screensize?

2020-10-31 Thread Peter J. Holzer
On 2020-10-31 07:51:38 -0500, 2qdxy4rzwzuui...@potatochowder.com wrote: > On 2020-10-31 at 13:02:03 +0100, > "Peter J. Holzer" wrote: > > On 2020-10-31 12:30:43 +1100, Chris Angelico wrote: > > > There is no valid way for an application to read my mind and size > > > itself. Attempting to query my

Re: Best way to determine user's screensize?

2020-10-31 Thread Chris Angelico
On Sat, Oct 31, 2020 at 11:53 PM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2020-10-31 at 13:02:03 +0100, > "Peter J. Holzer" wrote: > > > On 2020-10-31 12:30:43 +1100, Chris Angelico wrote: > > > > There is no valid way for an application to read my mind and size > > > itself. Attempting

Re: Best way to determine user's screensize?

2020-10-31 Thread 2QdxY4RzWzUUiLuE
On 2020-10-31 at 13:02:03 +0100, "Peter J. Holzer" wrote: > On 2020-10-31 12:30:43 +1100, Chris Angelico wrote: > > There is no valid way for an application to read my mind and size > > itself. Attempting to query my screen size seems to just make things > > worse in a lot of situations. > You

Re: GUI: I am also looking for a nudge into the best (GUI) direction.

2020-10-31 Thread Betty Hollinshead
On Saturday, 31 October 2020 at 08:36:48 UTC, Barry Scott wrote: > > On 29 Oct 2020, at 15:54, flaskee via Python-list > > wrote: > > > > Hello! > > > > I've been reading the GUI toolkit posts. > > > > snip > > > Barry Suggest you look at Glade and pure Python3 Works well on Linux (Fedora

Re: GUI: I am also looking for a nudge into the best (GUI) direction.

2020-10-31 Thread Betty Hollinshead
On Saturday, 31 October 2020 at 08:36:48 UTC, Barry Scott wrote: > > On 29 Oct 2020, at 15:54, flaskee via Python-list > > wrote: > > > > Hello! > > > > I've been reading the GUI toolkit posts. > > > > If anyone can give me a push in the right python direction on > > my needs, I'd be grate

Re: Best way to determine user's screensize?

2020-10-31 Thread Peter J. Holzer
On 2020-10-30 20:47:50 -0400, songbird wrote: > Chris Angelico wrote: > > I add my voice to those who detest applications that think they know > > best and decide that they own the entire screen. It is incredibly > > annoying. > > do you object to a window being put in the approximate > center o

Re: Best way to determine user's screensize?

2020-10-31 Thread Peter J. Holzer
On 2020-10-31 12:30:43 +1100, Chris Angelico wrote: > On Sat, Oct 31, 2020 at 10:57 AM Peter J. Holzer wrote: > > On 2020-10-31 10:02:12 +1100, Chris Angelico wrote: > > > On Sat, Oct 31, 2020 at 9:55 AM flaskee via Python-list > > > wrote: > > > > I have done all of this resizing and layout stuf

Re: Best way to determine user's screensize?

2020-10-31 Thread Peter J. Holzer
On 2020-10-30 19:18:22 -0500, Igor Korot wrote: > On Fri, Oct 30, 2020 at 6:59 PM Peter J. Holzer wrote: > > On 2020-10-31 10:02:12 +1100, Chris Angelico wrote: > > > I add my voice to those who detest applications that think they know > > > best and decide that they own the entire screen. > > > >

Re: Best way to determine user's screensize?

2020-10-31 Thread Peter J. Holzer
On 2020-10-30 20:08:35 -0700, jf...@ms4.hinet.net wrote: > What's wrong the OP's question? Why can't just answer it? Igor already answered it: There is no best way in Python, because it depends on the framework (and there are many frameworks). hp -- _ | Peter J. Holzer| Story mu

Re: GUI: I am also looking for a nudge into the best (GUI) direction.

2020-10-31 Thread Barry Scott
> On 29 Oct 2020, at 15:54, flaskee via Python-list > wrote: > > Hello! > > I've been reading the GUI toolkit posts. > > If anyone can give me a push in the right python direction on > my needs, I'd be grateful. > > This is for business applications, not games. > (but if a game toolkit fit