Go to advanced search

by PySimpleGUI
Mon Nov 05, 2018 6:20 pm
Forum: Python
Topic: Grey square appears when running GUI based on PySimpleGUI
Replies: 3
Views: 335

Re: Grey square appears when running GUI based on PySimpleGUI

It's fixed now. Get the latest code and you won't have the problem....

pip install pysimplegui
by PySimpleGUI
Thu Sep 27, 2018 5:54 pm
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

Lots of PySimpleGUI changes since the last update here on Aug 31. A few of the notable ones include: A Python 2.7 version was released named PySimpleGUI27. New Elements (widgets) Graph - a canvas you can draw / graph on using your coordinate system instead of tkinter's Tabs Scrollable columns Tables...
by PySimpleGUI
Fri Aug 31, 2018 2:21 pm
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

New demo program that again may be of interest to Pi users. Demo_Matplotlib_Ping_Graph.py This program plots the time it takes to ping google.com. As the filename suggests, it uses Matplotlib. There are no package installs needed to run this demo assuming tkinter and matplotlib are already part of y...
by PySimpleGUI
Tue Aug 21, 2018 11:54 pm
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

Another set of new features that may be of interest to Raspberry Pi users! You can get keyboard key-strokes as they are being pressed. When used with async forms, it's possible to get a stream of key-presses in realtime if someone holds down a key. They stop when the key is released. These could be ...
by PySimpleGUI
Fri Aug 17, 2018 3:00 pm
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

Released version 2.9 to PyPI yesterday, so if you've installed, you may want to upgrade.

Has multi-column support now meaning pretty much any layout you can dream up is possible.

More color options include a new ChangeLookAndFeel function that will quickly change the colors to pre-defined settings.
by PySimpleGUI
Sat Aug 11, 2018 11:06 pm
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

.... True; the parsing can get complicated, but my view is it doesn't matter how complicated it is behind the scenes, you're trying to make it simple for the user to specify. Please don't take anything I've said as criticism. It's great to see you doing it whether it's how I would do it or not. How...
by PySimpleGUI
Sat Aug 11, 2018 12:08 pm
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

True, and I think that is mostly what people want to get away from when they choose a framework or wrapper. It's always a question of what's the least effort, the minimum I have to do ? In that respect I would abstract things even further. I would have a wrapper which could give PySimpleGUI's lates...
by PySimpleGUI
Mon Aug 06, 2018 3:21 pm
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

Wow, thank you! Try not to look at the implementation very closely. I would not classify my code as a good template for anything, at least not that code ;) It was one of the first Python programs I wrote. I had not yet heard of PEP8, so my naming conventions are weird sometimes. What I tried to do w...
by PySimpleGUI
Mon Aug 06, 2018 1:09 pm
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

.... it's to give a simplified , yet standard, way for children to slap a desktop program together. .... Note the example you used is spelt out line by line for learning and as an example to show what each value does and how it can be manipulated. I assert that children will find PySimpleGUI easier...
by PySimpleGUI
Mon Aug 06, 2018 12:20 pm
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

Sure! Drag and drop form builder would in fact be cool. I attempted to make a text based form creation tool that would allow the user to specify a form using a text editor instead of writing Python code. I found that I was duplication the Python parser in the end. The code matched pretty closely the...
by PySimpleGUI
Mon Aug 06, 2018 11:56 am
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

The answer is that people will gravitate towards a wrapper which abstracts a framework in a way which makes it easier for them to use in the way they want to use it. ... the more the we have the better. Thank you for a spot-on answer, in my opinion. I did a quick test to understand the differences ...
by PySimpleGUI
Mon Aug 06, 2018 11:09 am
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

Since you're not sure, why not find out if creating a GUI is easier? Try creating one. Use it to be sure. The latest documentation on PySimpleGUI can be found here: https://pysimplegui.readthedocs.io The readme also has this information. An extensive survey of GUI frameworks, including guizero, was ...
by PySimpleGUI
Sat Aug 04, 2018 11:55 am
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

New design pattern just uploaded.... button callback simulation. PySimpleGUI doesn't have a "button callback" mechanism, but it can be easily simulated. This code has been uploaded to the GitHub. import PySimpleGUI as sg # This design pattern simulates button callbacks # Note that callbacks are NOT ...
by PySimpleGUI
Tue Jul 31, 2018 3:44 pm
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

Version 2.7 released. New feature is Realtime Buttons. sudo pip3 install --upgrade PySimpleGUI There is also a new demo application on the GitHub, Demo_Pi_Robitics.py. You will find design pattern using these buttons there. The way they work is that instead of receiving a single button return value ...
by PySimpleGUI
Mon Jul 30, 2018 8:30 pm
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

About the flashing window. There is a work-around If you set your window's location yourself on the call to FlexForm, then this flash does not happen. This is because in order to exactly center the window on the screen I first need to get the window's sizes. I am unable to do this until the window i...
by PySimpleGUI
Mon Jul 30, 2018 8:13 pm
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

pip install --upgrade PySimpleGUI As that's Python 3 code, should it not be "pip3" ? It would be nice if it also worked for Python 2.7 as well. It seems to do what it claims to do but I do note a brief flash of a window frame at the top left of the Pi desktop until it moves itself to the centre of ...
by PySimpleGUI
Mon Jul 30, 2018 2:25 pm
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

Re: PySimpleGUI - New package for building custom GUIs in a few lines of code

Yes, border_depth of 0 SHOULD remove all bevels. I've noticed that a few have a very slight bevel even with this setting. It does make the forms look "flat", the more modern interface. You can see in my examples that some screenshots have bevels and some don't. The newer examples have border_depth a...
by PySimpleGUI
Sat Jul 28, 2018 6:51 pm
Forum: Graphics programming
Topic: PySimpleGUI - New package for building custom GUIs in a few lines of code
Replies: 26
Views: 14885

PySimpleGUI - New package for building custom GUIs in a few lines of code

Not sure what the rules are about cross-posting, so apologies if I'm breaking a rule.... I figure the moderators will sort me out. Not sure if everyone reading Graphics Programming reads the Python forum or not. Post this in the Python forum.... PySimpleGUI was recently released to PyPI. You can get...

Go to advanced search