#pyqt | Logs for 2018-11-30

Back
[00:21:36] -!- mintograde has quit [Ping timeout: 250 seconds]
[01:09:00] -!- kallesbar has joined #pyqt
[01:33:09] -!- linuxson has joined #pyqt
[01:33:37] <linuxson> There any specific reason why I am getting a "'PyQt5.QtCore.pyqtSignal' object has no attribute 'emit'" error when trying to create my own Signal/Slot?
[01:35:01] <altendky> linuxson: pastebin full code and output
[01:35:52] <altendky> linuxson: is guess you are doing self.signal = rather than setting it as a class attribute on a qobject
[01:43:48] <linuxson> altendky: https://pastebin.com
[01:44:09] <linuxson> altendky: First block is my login form class, second is main application
[01:46:48] <altendky> linuxson: what I said above. You must use pyqtSignal as a class attribute. http://pyqt.sourceforge.net
[01:48:33] <altendky> linuxson: sorry, but bed time here. I'll check back for messages later
[01:48:56] <linuxson> altendky: Thanks, will have a look again at my code. Cheers
[02:02:45] <altendky> linuxson: detoured to get my son back to sleep. Do you see the difference?
[02:04:45] <linuxson> altendky: Nope, still can't get this to work....
[02:06:59] <altendky> linuxson: but did you see the difference between the docs and your code? They don't use self. and they don't assign it in __init__
[02:08:22] <linuxson> altendky: https://pastebin.com
[02:08:27] <linuxson> altendky: Yeah, saw that
[02:08:43] <linuxson> That is what I've changed so far
[02:08:51] <linuxson> At least it's not crashing anymore
[02:09:01] <linuxson> altendky: But output is nothing now
[02:11:20] <altendky> linuxson: do you .connect() the signal to the slot?
[02:12:12] <linuxson> altendky: Didn't think it was necessary as I am using the decorator?
[02:14:56] <altendky> linuxson: I know there's some ability to connect by name, but it has to be more than a string in a decorator. You could have multiple instances of multiple classes with a signal by that name. Which would it use? When would it connect it? I'd start by being explicit with .connect().
[02:15:51] <linuxson> altendky: This is the only instance I currently have of a custom signal/slot
[02:16:54] <linuxson> altendky: signal is now a class attribute, which gets emitted when a button is clicked, and the decorator is "attached" to a method in my main application....so not understanding why this isn't working at all
[02:17:10] <altendky> linuxson: sure, but because the situation I propose can exist, just having the string in the slot decorator can't be sufficient. There must be more
[02:17:16] <altendky> linuxson: attached how?
[02:17:59] <altendky> linuxson: how is login() called?
[02:19:04] <linuxson> altendky: By a button click in my LoginPage class, and I meant "attached" as in it decorates a method in my main application
[02:19:19] <linuxson> altendky: I'll pastebin it quick
[02:19:39] <altendky> linuxson: I'm saying that decorator doesn't create a connection
[02:19:59] <altendky> It can't
[02:20:13] <altendky> It just creates a slot
[02:20:27] <linuxson> altendky: https://pastebin.com
[02:20:46] <altendky> https://paste.pound-python.org
[02:22:08] <linuxson> altendky: https://paste.pound-python.org
[02:22:32] <linuxson> altendky: https://paste.pound-python.org
[02:23:46] <altendky> linuxson: after line 20, `self.loginPage.login_success.connect(self.set_page_index)`
[02:25:36] <linuxson> altendky: AHA!!! Thanks, that did the trick :)
[02:26:03] <linuxson> altendky: Thanks, appreciate the help....this has been boggeling me for the last 30min
[02:27:39] <altendky> linuxson: sure thing :]. Good night and good luck
[02:37:11] <linuxson> altendky: Thanks, same to you
[02:37:16] -!- linuxson has quit []
[03:43:10] -!- Lauxley has joined #pyqt
[05:09:59] -!- frispete has quit [Quit: Konversation terminated!]
[05:11:40] -!- frispete has joined #pyqt
[06:07:47] -!- anqxyr has joined #pyqt
[06:12:28] -!- mintograde has joined #pyqt
[06:22:58] -!- Belxjander has joined #pyqt
[06:32:32] -!- Siecje has joined #pyqt
[06:49:08] -!- mintograde has quit [Ping timeout: 272 seconds]
[07:35:13] -!- JanC has quit [Remote host closed the connection]
[07:35:33] -!- JanC has joined #pyqt
[08:19:38] -!- beeman has joined #pyqt
[09:27:10] -!- Siecje has quit [Ping timeout: 250 seconds]
[09:55:53] -!- Siecje has joined #pyqt
[11:16:50] -!- Siecje has quit [Ping timeout: 268 seconds]
[12:15:29] -!- Lauxley has quit [Remote host closed the connection]
[14:06:06] -!- _sting7 has joined #pyqt
[15:55:48] -!- Dave_Elec has joined #pyqt
[16:01:21] -!- mintograde has joined #pyqt
[16:04:33] -!- minto has joined #pyqt
[16:07:08] -!- mintograde has quit [Ping timeout: 245 seconds]
[16:21:58] -!- anqxyr has quit [Read error: Connection reset by peer]
[16:27:52] -!- Dave_Elec has quit [Remote host closed the connection]
[16:29:33] -!- Dave_Elec has joined #pyqt
[16:29:34] -!- Dave_Elec has quit [Remote host closed the connection]
[16:29:54] -!- Dave_Elec has joined #pyqt
[17:00:56] -!- kallesbar has quit [Remote host closed the connection]
[17:18:31] -!- kallesbar has joined #pyqt
[17:19:36] -!- Topy has joined #pyqt
[18:15:55] -!- _sting7 has quit [Quit: leaving]
[20:36:15] -!- kallesbar has quit [Ping timeout: 246 seconds]
[21:31:52] -!- Belxjander has quit [Quit: AmigaOSv4.1.6+//PowerPC native]
[21:32:16] -!- Belxjander has joined #pyqt
[22:04:52] -!- minto has quit [Ping timeout: 244 seconds]