-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: modified quickstart simple example #349
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #349 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 21 21
Lines 2095 2095
=========================================
Hits 2095 2095 ☔ View full report in Codecov by Sentry. |
This submission is deliberately simpler than pyside6/Qt - to give people a very simple example of signals and slots so they don't have to learn the whole PySide/Qt Frameworks before understanding Signals and Slots. (I've programmed with them on and off for over a decade) Here's a more complex version that has a pytest component: """ % python changing_psygnal.py % pytest changing_psygnal.py """ from psygnal import Signal class MyObject: create an instancemy_obj = MyObject() You (or others) can connect callbacks to your signals@my_obj.value_changed.connect def get_name_and_say_hello(): if name == "main": """ TEST """ |
CodSpeed Performance ReportMerging #349 will not alter performanceComparing Summary
|
thanks for the suggestion @roynielsen17. If you think this clarifies something about the usage pattern, I'm happy to include it |
Absolutely!
Respectfully,
-Roy Nielsen
…On Thu, Jan 23, 2025 at 6:10 PM Talley Lambert ***@***.***> wrote:
thanks for the suggestion @roynielsen17 <https://github.com/roynielsen17>.
If you think this clarifies something about the usage pattern, I'm happy to
include it
—
Reply to this email directly, view it on GitHub
<#349 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACYLAGHR2YTUVCJHMDJTY332MGHILAVCNFSM6AAAAABVVO2UIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJRGMZTGNZWGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Adding a while loop to the index.md example with the ability to show what happens with looping, seeing multiple signals sent and handled, seeing the changed print statements when the signals are handled, when the inputs are changed and signals emitted.
example tested with python 3.9+ python on macos