Comments (4)
If you don't want to "shadow" the print
call by reassigning print, then you can set a parameter in the call to sg.Print to reroute stdout:
sg.Print('', do_not_reroute_stdout=False)
After that, all prints will go to the debug window.
from pingmote.
from pingmote.
Yea, I'm familiar with AutoHotKey. A friend suggested it a few days back. I've used countless hotkey managers over the decades. In fact, I'm still running one of them called HotKeyBind. It was your code that I started to tack some shortcuts onto that got me to realize that it is not difficult to just make my own which is what let to PySimpleHotkey over the weekend.
I'm a tool lover for sure, which my tools folder at a total of:
folders worth of tools... and many of those are by manufacturer. I've always been a "mosiac of tools" kind of person where I use many tools to stitch together my quilt of tools rather than trying to use / find a single monolithic tool.
PySimpleGUI really caused my toolsmithing to explode though. I quickly replaced Rainmeter as it's trivial to make a "desktop widget" using PySimpleGUI.
Totally with you on the laziness, which is why I wasn't keen on learning another language, like a scripting language when I've got Python and PySimpleGUI right under my fingertips.
My point this weekend with PySimpleHotkeys is that it was created by gluing together a number of Demo programs. Because of the PySimpleGUI coding guidelines and the architecture, the parts fit together really well.
I've been struggling a bit today to detect and kill previously running hotkey copies, but I just solved the problem after I discovered a debugging method I hadn't used before with subprocesses...the PySimpleGUI Debug Window. I'm going to write up a Cookbook entry / announcement / Tweet about it. I was surprised I had never tried it. I was struggling with these programs started using the PySimpleGUI exec apis because I don't see the output because they have no console. All I had to do was set
print= = sg.Print
while I was debugging those programs and suddenly I had all the debug info I needed.
I'm doing a lot with Automation right now with this new PySimpleGUIQt testing. Trying to make it so that all of the ports can be more easily tested.
Anyway, thanks again for the inspiration.
I added an integration with pyuautogui today so that it's easier for me to add emoji's to my posts... like here:
Thanks again! Keep building... you've got great instincts, curious and thus innovation often results.
from pingmote.
The print = sg.Print
is brilliant -- I'll definitely have to steal that sometime in the future :)
Good luck with PySimpleGUIQt!
from pingmote.
Related Issues (8)
- Wow! Amazing work! Reporting a tkinter crash, a 3.6 issue, and a menu suggestion.....
- focus_force HOT 4
- System Tray Icon or other "running" indicator HOT 1
- Suggestion - User settings using PySimpleGUI or json HOT 7
- Two "bad files" when running on 3.6 HOT 3
- Why is it called pingmote? HOT 9
- Using the new psgtray package HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pingmote.