> On 2019-11-13, at 10:16, Mike Barnett <mike_barn...@hotmail.com> wrote:
> 
> Ohhhh….. on a Mac… yea, not a good combination with tkinter from my 
> experience.

It works great if you compile your own Python and link to an included standard 
Tcl/Tk. We've been doing that since we started using Macs. 12, 15 years? It 
looks and works just like the normal/standard Linux or Windows installations. 
But "they" don't want to do that anymore. Someone may have figured out a 
workaround in Anaconda, but that's a whole other bag of worms.

>  
> Most Mac users of PySimpleGUI are using PySimpleGUIQt because of this. 
>  
> PySimpleGUI may very well not have the “Depth” you need.  Because the APIs 
> are meant to be portable across multiple GUI frameworks, things like Toolbars 
> are something users need to create on their own, at least for now.

Yeah, we'll see. I don't even use things as "fancy" as Toolbars, but I may 
change the look of things a bit too much, or maybe not.

>  
> Simple… that’s the main focus of PySimpleGUI… to keep things simple, 
> especially for the developer.  No need to write 40 lines of code when 4 will 
> work just as well.
>  
> PySimpleGUI is extendable.  There is a section in the documentation about 
> accessing the underlying “Widgets”.  Each PySimpleGUI Element tends to map 1 
> to 1 with a GUI Framework’s Widget.  This gives advanced developers access to 
> changing more detailed settings for a Widget.   It’s not, however, meant to 
> be how the normal programming of PySimpleGUI is done.

Cool. Hope I can get to it today.

Thanks!

>  
>  
>  
> From: Robert Greschke <rob...@greschke.com <mailto:rob...@greschke.com>> 
> Sent: Wednesday, November 13, 2019 12:11 PM
> To: Mike Barnett <mike_barn...@hotmail.com <mailto:mike_barn...@hotmail.com>>
> Cc: Python-Tkinter <tkinter-discuss@python.org 
> <mailto:tkinter-discuss@python.org>>
> Subject: Re: [Tkinter-discuss] Tkinter to Qt-whatever
>  
> Hi!
>  
> I saw that, but didn't take a look at it. Did I even get a choice? Hmm. I'll 
> look and see if it can handle me. The trigger for all of this was the way 
> things Tkinter look/feel in macOS. I guess I should give tix/ttk stuff a 
> look, again, too. Our stuff doesn't need to look native, but consistent 
> (Linux/Mac/Win) would be nice. The default Linux look is even the same as it 
> was when stuff was still running on SunOS. Everything is generally "big and 
> clunky" which is really nice for field work. No finesse required when the Sun 
> is in your eyes and the wind chill factor is 0F.
>  
> I've looked at a bunch of documentation online for Qt stuff, got three books, 
> and all of it is just PyDoc quality and 'Hello World' stuff. 
> "...setIconSize(): This sets the icon size of the toolbar icons for this main 
> window." No!! Never would have guessed that. I sleep with Grayson's book to 
> keep anything from happening to it. :)
>  
> Other than just the standard .config() things I haven't needed to really mess 
> with widgets. Color, padding, maybe the width of the scrollbars (they got 
> really narrow on some macOS versions), etc. A bit of Canvas drawing. 
> Rewriting would be OK if there is even less writing!
>  
> These are things Tkinter has been fine for: 
>  
> www.passcal.nmt.edu/~bob/passcal/software/index.html 
> <https://eur02.safelinks.protection.outlook.com/?url=http:%2F%2Fwww.passcal.nmt.edu%2F~bob%2Fpasscal%2Fsoftware%2Findex.html&data=02%7C01%7C%7Ca66b07e713ef4b49242708d7685c8730%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637092618925801434&sdata=b23mXpx1u2EtZrW9CkNIWhvsk%2FexBUMpKbw2q%2BblNTE%3D&reserved=0>
>  
> It would just be more of the same from here on.
>  
> Thanks!
>  
> Bob
> 
> 
> On 2019-11-13, at 09:14, Mike Barnett <mike_barn...@hotmail.com 
> <mailto:mike_barn...@hotmail.com>> wrote:
>  
> Hi there
> 
> Take a look at PySimpleGUI (http://www.PySimpleGUI.org 
> <https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.PySimpleGUI.org&data=02%7C01%7C%7Ca66b07e713ef4b49242708d7685c8730%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637092618925811445&sdata=ttjFUYP1QRZ3T7wQMEXmDu1OyPkmcNh7pOk2HryuxaA%3D&reserved=0>)
> 
> With it you can write your code once and then easily move between tkinter, 
> Qt, WxPython and Remi (runs in browser).
> 
> Sometimes the only change needed is to the import statement.  Other times 
> only slight changes are needed.
> 
> If you're using only the basic kinds of Widgets and aren't getting overly 
> fancy with styles (aren't changing things like scrollbars down deep inside 
> tkinter), then moving across the GUI frameworks is pretty easy.
> 
> A number of the "Demo Programs" found on the GitHub run on multiple GUI 
> frameworks by only changing the import.  The OpenCV ones are great examples 
> of this.
> 
> But you will be required to "rewrite" your tkinter code.  PySimpleGUI code is 
> up to 10x shorter than tkinter code so it could happen a lot quicker than you 
> think.
> 
> TONS of documentation is available.  The Cookbook is being updated daily at 
> the moment and you can run a bunch of sample code on Trinket 
> (https://pysimplegui.trinket.io/demo-programs 
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpysimplegui.trinket.io%2Fdemo-programs&data=02%7C01%7C%7Ca66b07e713ef4b49242708d7685c8730%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637092618925831461&sdata=tSd7QVvZURlPOYEdHVvYX5Q3abQRBdn6ownrQVfpqDg%3D&reserved=0>).
> 
> It is certainly worth a look.
> 
> -mike

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to