#pyqt | Logs for 2018-10-20
Back
[00:01:39] -!- mintograde has quit [Ping timeout: 252 seconds]
[00:43:32] -!- stochastix has quit [Remote host closed the connection]
[00:44:48] -!- stochastix has joined #pyqt
[02:30:11] -!- anqxyr has joined #pyqt
[03:08:01] -!- kallesbar has joined #pyqt
[03:41:14] -!- malachi has joined #pyqt
[05:00:41] -!- Grange has joined #pyqt
[05:02:28] <Grange> Hi all. how do I trigger tooltip display on focusInEvent of a textedit? It's not working for me. My code here: https://paste.pound-python.org Thanks!
[05:09:25] <Grange> if I bound that to a button click it works, but on focusInEvent it doesn't show anything.
[05:14:36] -!- Belxjander has quit [Quit: AmigaOSv4.1.6+//PowerPC native]
[05:19:16] -!- Belxjander has joined #pyqt
[05:32:30] -!- malachi has quit [Remote host closed the connection]
[06:38:29] -!- Belxjander has quit [Ping timeout: 250 seconds]
[07:39:18] -!- mintograde has joined #pyqt
[09:02:39] <altendky> Grange: is this py2 or py3? Have you done anything to check if the focus method is being called?
[09:25:58] <_val_> Anyone can help me integrade a login screen with another UI?
[09:26:05] <_val_> altendky: you have some spare time?
[09:26:35] <altendky> _val_: not really right now. you either have a third party connecting the two activities, or the login launches the other.
[09:27:10] <_val_> altendky: https://dpaste.de
[09:27:22] <_val_> altendky: Ok! Well I prefer the latter
[09:27:45] <_val_> Login should launch the other UI when Username / password are entered correctly.
[09:27:58] <altendky> _val_: i'd personal prefer a third party manager
[09:28:27] <altendky> probably. but whatever, it's not a huge deal probably
[09:28:46] <altendky> _val_: but, definitely do not exec your login outside of the application
[09:28:55] <altendky> start the application asap and do stuff within it
[09:29:17] <_val_> altendky: well Maybe it would be easier to have the login within the app but No idea how
[09:29:53] <altendky> _val_: 'the app' isn't your main window. It's the event loop
[09:30:54] <_val_> altendky: sec
[09:30:56] <altendky> _val_: you should create just enough to get started then app.exec()
[09:31:39] <altendky> _val_: you shouldn't try to run a GUI without an event loop.
[09:35:01] <altendky> Side note, async/await really needs to become a normal part of pyqt development... We'll have to work on that.
[09:36:51] <_val_> altendky: well the login I've shown earlier is admin@internal, password: somepass. Now how easy would it be to have that entered using a small GUI as I posted earlier
[09:38:03] -!- frispete has quit [Quit: Konversation terminated!]
[09:38:09] <altendky> _val_: you already have the dialog right? I'm just saying that you shouldn't exec the dialog before you exec your app
[09:39:06] <_val_> altendky: I have the dialog as a seperate file
[09:39:10] <_val_> loginDialog.py
[09:39:19] <_val_> the other file is migrationTool.py
[09:40:19] -!- frispete has joined #pyqt
[09:41:05] -!- Grange has quit [Quit: Leaving]
[09:46:55] <altendky> _val_: ok. Do you understand what I'm saying? Do you know what the event loop is?
[09:50:28] <_val_> altendky: I have seen some tutorials showing that
[09:50:38] <_val_> To be honest no. I have no idea
[09:51:41] <altendky> _val_: when you click the gui there is an event. when a QTimer fires there is an event. the event loop handles all those things. for everything to work as you expect there needs to be an event loop running. app.exec() starts the event loop. don't do much before you do that.
[09:53:41] <_val_> altendky: Ok, so you are saying I should fire up app.exec() first which is migrationTool.py Then I should have a button that says "Login" ?
[10:43:22] <altendky> _val_: no, the app isn't your GUI. It is the QApplication. It is the thing that your GUI needs to run correctly.
[12:15:43] -!- kallesbar has quit [Remote host closed the connection]
[12:16:06] -!- kallesbar has joined #pyqt
[14:07:58] -!- necrose99_ has quit [Ping timeout: 245 seconds]
[14:45:28] -!- TunaLobster has quit [Quit: Page closed]
[15:17:55] -!- mandeep has quit [Ping timeout: 246 seconds]
[15:31:08] -!- mandeep has joined #pyqt
[15:53:30] -!- mandeep has quit [Ping timeout: 252 seconds]
[15:56:05] -!- mandeep has joined #pyqt
[16:26:30] -!- mandeep has quit [Ping timeout: 252 seconds]
[16:30:00] -!- kallesbar has quit [Quit: Konversation terminated!]
[17:01:31] -!- altendky has quit [Quit: Connection closed for inactivity]
[17:37:39] -!- anqxyr has quit [Read error: Connection reset by peer]
[21:27:21] -!- altendky has joined #pyqt
[22:32:03] -!- apersaud has joined #pyqt
[22:33:06] <apersaud> hello, I have a qlabel where I change the text while running the program, but I want the size to stay the same as when the window opened. Is there an easy way of doing this?
[23:02:24] -!- minto has joined #pyqt
[23:04:09] -!- mintograde has quit [Ping timeout: 252 seconds]
[23:25:46] <altendky> apersaud: can you share a screenshot?
[23:33:04] -!- minto has quit [Ping timeout: 264 seconds]
[23:41:17] -!- apersaud has quit [Quit: ERC (IRC client for Emacs 26.1)]