ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

18 January 2024
2024-01-18×
18 January 2024
Hey folks! Say I'd like to extract a object to encapsulate some functionality that was bloating my main window. Some things are now wired up nicely with QtCore.Signal which can pass along data. Buy when I emit() I cannot get anything returned, right? Well it's designed like that. But how would you handle that case? 🤔
Specifically my new object shall not proceed if there are unsaved things. I would probably keep that check in the mainwindow and tell the new object explicitly from there to continue. 🤔
Ë
(I mean I'm using PySide but this is more a software design question, right? :D) (I think I solved it already by talking into the void 🦆) 🙏
A
Hello there! I don't really get what the problem is. You can emit from any function, once or several times. The function may return None or something, raise an exception or do whatever you wish. However, a Slot connected to fire on the Signal should return None. I'm unsure what would happen if a Slot returns something; just don't return anything but None.
Ë
yeah I guess one would at least need some pseudo code to understand. I'll hack something up later. Thanks for reading into already :)
Calendar: January 2024
MoTuWeThFrSaSu1323456375819110311121314153168171851920213222324325326827928129330431
Archive by month
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog