Giter Club home page Giter Club logo

Comments (4)

PySimpleGUI avatar PySimpleGUI commented on August 26, 2024 1

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.

DdhteYwiwj

from pingmote.

dchen327 avatar dchen327 commented on August 26, 2024

from pingmote.

PySimpleGUI avatar PySimpleGUI commented on August 26, 2024

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:
image

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:
image

Thanks again! Keep building... you've got great instincts, curious and thus innovation often results.

from pingmote.

dchen327 avatar dchen327 commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.