#pyqt | Logs for 2020-06-16
Back
[01:59:30] -!- yustin has joined #pyqt
[02:47:31] -!- kushal has quit [Remote host closed the connection]
[02:47:51] -!- kushal has joined #pyqt
[02:58:10] -!- sazawal has joined #pyqt
[03:56:58] -!- jmarsac has joined #pyqt
[04:46:03] -!- jmarsac has quit [Ping timeout: 272 seconds]
[04:59:38] -!- jmarsac has joined #pyqt
[05:14:39] -!- jmarsac has quit [Read error: Connection reset by peer]
[06:00:29] -!- sazawal has quit [Quit: Leaving]
[06:11:01] -!- sazawal has joined #pyqt
[06:36:19] -!- honigkuchen has joined #pyqt
[08:25:02] -!- sazawal has quit [Ping timeout: 260 seconds]
[09:35:51] -!- sazawal has joined #pyqt
[10:11:21] -!- BPL has joined #pyqt
[10:12:33] -!- SpinTronix_ has joined #pyqt
[10:15:18] -!- gadesantares has quit [Ping timeout: 256 seconds]
[10:15:36] -!- gadesantares has joined #pyqt
[10:16:08] -!- SpinTronix has quit [Remote host closed the connection]
[10:19:06] -!- cottoneyejim has joined #pyqt
[10:19:25] -!- totte has quit [Ping timeout: 246 seconds]
[10:24:08] -!- totte has joined #pyqt
[10:33:54] -!- yustin has quit [Ping timeout: 240 seconds]
[10:53:20] -!- cottoneyejim has quit [Quit: cottoneyejim]
[13:02:46] -!- cottoneyejim has joined #pyqt
[13:34:06] -!- JanC has quit [Quit: 'k zien d'r mee weh zi]
[13:34:46] -!- JanC has joined #pyqt
[13:36:24] SpinTronix_ is now known as SpinTronix
[13:37:00] SpinTronix is now known as SpinTronix_
[13:47:00] SpinTronix_ is now known as SpinTronix
[13:47:14] -!- cottoneyejim has quit [Ping timeout: 256 seconds]
[13:48:14] SpinTronix is now known as SpinTronix_
[14:49:14] SpinTronix_ is now known as SpinTronix
[15:31:39] -!- cottoneyejim has joined #pyqt
[15:34:16] -!- jmarsac has joined #pyqt
[15:35:06] SpinTronix is now known as SpinTronix_
[16:01:15] -!- yustin has joined #pyqt
[16:05:52] -!- alexhugo has joined #pyqt
[16:08:10] -!- honigkuchen has quit [Ping timeout: 260 seconds]
[16:18:43] SpinTronix_ is now known as SpinTronix
[16:31:36] <ali1234> what are the pros and cons of loading a .ui at runtime vs compiling it with pyuic?
[16:35:56] <ali1234> pro: you don't have to have an extra build step in setup.py
[16:36:19] <ali1234> alternatively, you don't have to check in generated code
[16:38:37] -!- cottoneyejim has quit [Quit: cottoneyejim]
[16:38:41] <altendky> code awareness for static analysis
[16:38:49] <altendky> Ide or otherwise
[16:39:26] <altendky> I gave in and switched to building from setup.py because the dynamic loading can't officially handle nesting
[16:39:40] <altendky> Like a .UI loading with a custom widget that loads a .ui
[16:40:13] <altendky> It's got crazy global module proxy objects that give horrible error messages
[16:43:18] <altendky> I did also write up an import hook to compile on the fly
[16:47:57] <altendky> ali1234:
[16:50:01] -!- sazawal has quit [Quit: Leaving]
[16:50:16] -!- jmarsac has quit [Ping timeout: 256 seconds]
[16:57:55] <ali1234> i see
[16:58:13] <ali1234> IDE side does not seem to be a problem since you have to use findChild anyway, and that takes a type
[16:58:58] <ali1234> if i go full UI it solves a lot of my problems with generating menus etc
[16:59:04] <altendky> ali1234: you don't have to
[16:59:10] <altendky> I rarely do
[16:59:14] <ali1234> how do you do it?
[16:59:33] <ali1234> just by accessing the uic object directly?
[17:00:06] <ali1234> using findChild is probably easier given what my UI is going to end up looking like
[17:00:19] <ali1234> in fact it's the same thing i'm doing with the QML
[17:02:53] -!- ali1234 has quit [Remote host closed the connection]
[17:03:24] -!- ali1234 has joined #pyqt
[17:03:41] <altendky> https://github.com gets https://github.com
[17:04:24] <ali1234> nice
[17:05:39] -!- BPL has quit [Quit: Leaving]
[17:06:32] <altendky> ali1234: I particularly like the .ui attribute so you don't have to worry about collisions from the UI into your code
[17:07:23] <ali1234> that's a thing you made?
[17:08:12] <altendky> It's a way I use the standard pyqt tools
[17:09:06] <altendky> https://github.com
[17:09:48] <ali1234> what is Ui_Form()?
[17:10:13] <altendky> ali1234: it's from a pyuic5 output
[17:10:25] <altendky> The Form part of the name may be specific to me but...
[17:10:35] <altendky> Compile your .UI and look inside
[17:11:04] <ali1234> oh i see, it will probably be Ui_MainWIndow for me
[17:12:33] <ali1234> wait a minute, that's just self in my code... i see
[17:13:41] <ali1234> okay i got it
[17:14:00] <ali1234> so everything you define in the .ui ends up as an attribute on the object uic returns
[17:14:10] <ali1234> no nesting
[17:14:30] <altendky> Yup
[17:14:31] <ali1234> i can see why you would want to put it in a separate namespace then
[17:14:55] <altendky> Only collided a few times before I did this :]
[17:54:29] -!- _AleX_ has quit [Ping timeout: 256 seconds]
[17:57:50] -!- frispete_ has quit [Ping timeout: 260 seconds]
[17:57:57] -!- jmarsac has joined #pyqt