#pyqt | Logs for 2018-10-11

Back
[00:02:43] -!- Mrokii has quit [Ping timeout: 250 seconds]
[00:07:14] -!- Mrokii has joined #pyqt
[01:52:00] -!- frispete_ has quit [Ping timeout: 252 seconds]
[01:55:04] -!- frispete_ has joined #pyqt
[02:03:49] -!- frispete_ has quit [Remote host closed the connection]
[02:08:59] -!- frispete_ has joined #pyqt
[03:01:45] -!- _val_ has joined #pyqt
[03:01:55] -!- _val_ has quit [Quit: leaving]
[03:07:20] -!- _val_ has joined #pyqt
[03:59:28] -!- anqxyr has joined #pyqt
[04:04:49] -!- anqxyr has quit [Ping timeout: 268 seconds]
[05:35:14] <_val_> altendky: yay! Its work :-p
[05:35:19] <_val_> I mean It is working! :)
[06:10:47] -!- mintograde has joined #pyqt
[06:53:10] -!- mintograde has quit [Ping timeout: 268 seconds]
[07:14:57] <_val_> altendky: http://sprunge.us <-- this one list vm's. I changed this to a function but not sure how to make the print(...) to a return..
[07:20:41] -!- kallesbar has joined #pyqt
[07:35:18] -!- Akex_ has quit [Ping timeout: 244 seconds]
[08:02:48] -!- nsizemor has joined #pyqt
[09:13:10] swalladge_ is now known as swalladge
[09:45:09] -!- Siecje has joined #pyqt
[09:48:48] -!- mandeep has quit [Ping timeout: 245 seconds]
[09:55:15] <altendky> _val_: put your results in a list and then return the list
[09:55:52] <altendky> _val_: not that the try finally should be around everything after the connection is made
[09:56:15] <altendky> *note that
[09:56:49] <altendky> The point is that no matter what happens anywhere in the function, the finally will run and make sure the connection is closed
[09:57:12] <altendky> Even better would be if you could `with` the connection
[09:58:53] <_val_> altendky: I've improved some stuff: http://sprunge.us
[09:59:44] <_val_> altendky: thing is. this. I now am able to get the VM list.. but what I am trying to do is after selecting a VM, the VM disks should be added into an combo.addItems(somefunc())
[10:03:44] <_val_> altendky: this: http://sprunge.us shows the disk size etc..
[10:08:04] <altendky> _val_: so it is working for the first combo box?
[10:08:19] <_val_> altendky: yes
[10:08:25] <_val_> get_vms() works...
[10:09:15] <_val_> The last paste I sent shows the VM name as well as the disk size. I rounde to GB's but well that is not important. I can also get diks id's which I think are more important
[10:12:14] <_val_> altendky: so when I include disk.id in the print statement I get:
[10:12:14] <_val_> vm-prod01 : 32 28723709-bd28-4a09-9720-ba36d494a261
[10:12:15] <_val_> vm-prod02 : 100 119b1622-1453-4d4d-98ef-3f7cf82134da
[10:12:54] <_val_> Now the idea is to have those uuids in a combobox when a VM is selected (this vm coming from list_vms()) function
[10:27:42] -!- mandeep has joined #pyqt
[10:30:18] -!- mandeep has quit [Client Quit]
[10:40:15] -!- anqxyr has joined #pyqt
[11:08:42] <altendky> _val_: sorry, I'm not going to be around as much today. Anyways, it should be pretty similar. You just need a method which is connected to one of the changed signals from the first com by o box
[11:08:50] <altendky> Combo box
[11:09:05] <altendky> I think one of them gives you the selected string directly
[11:22:44] <_val_> altendky: ok. No problem. I'll just poke you now and then.
[11:22:48] <_val_> see this
[11:23:15] <_val_> altendky: http://sprunge.us
[11:23:33] <_val_> You see there the search=host.name It would be awesome to get this in a function.
[11:24:51] <altendky> _val_: are you familiar with signals and slots?
[11:29:56] <_val_> altendky: limited but I want to learn them
[11:30:23] <_val_> altendky: problem is, if I have an example then I can build the rest myself step by step ... I guess
[11:34:51] <altendky> _val_: I assume the zetcode tutorial covers them
[11:36:04] <altendky> I think you could use http://doc.qt.io
[11:36:31] <_val_> altendky: this is what I have now: http://sprunge.us
[11:36:41] <_val_> Ok I'll have a look
[11:36:47] <altendky> So the_combo.currentIndexChanged[str].connect(...) Maybe
[11:38:16] <_val_> altendky: hmm replace the other one?
[11:38:22] <_val_> I mean the activated?
[11:39:26] <altendky> I think the docs cover the difference. You can decide
[11:39:41] <altendky> Probably doesn't matter at this point
[11:59:32] <_val_> altendky: http://sprunge.us
[11:59:36] <_val_> this is the error I am getting
[12:01:40] -!- tijensse has quit [Remote host closed the connection]
[12:01:44] -!- crmaurei has quit [Write error: Connection reset by peer]
[12:02:29] <_val_> I mean I know why it is doing this because I added 2 combo.addItems(...)
[12:11:21] <_val_> altendky: ok this works somehow but it shows the Vm's coming from the first host. http://sprunge.us
[12:13:10] -!- anqxyr has quit [Ping timeout: 252 seconds]
[14:16:28] -!- anqxyr has joined #pyqt
[14:18:33] <anqxyr> I'm doing a thing, and I'm wondering if the way I do it is the "correct"/best way to do something like that, or if there's another way
[14:19:14] <anqxyr> I'm displaying a custom hovering widget that's on top of the normal UI, and I want to close/hide it when the user clicks anywhere outside of it
[14:19:52] <anqxyr> to do so, I install an event filter on to qApp, and listen for all mouse clicks
[14:20:26] <anqxyr> then check via .widgetAt if the click was inside or outside the widget, and if outside, then I hide it
[14:20:37] <anqxyr> how normal does all of that sound?
[14:20:43] -!- nsizemor has quit [Quit: nsizemor]
[14:24:50] -!- kallesbar has quit [Quit: Konversation terminated!]
[14:26:25] -!- Avaris has quit [Ping timeout: 268 seconds]
[14:27:16] -!- Avaris has joined #pyqt
[15:42:59] -!- anqxyr has quit [Read error: Connection reset by peer]
[16:40:25] <altendky> _val_: did you get stuff working?
[17:05:04] -!- Siecje has quit [Quit: Leaving.]
[17:17:10] -!- mintograde has joined #pyqt
[18:24:14] -!- Mrokii has quit [Ping timeout: 244 seconds]
[18:25:00] -!- Mrokii has joined #pyqt
[18:39:03] -!- Belxjander has joined #pyqt
[22:45:48] -!- mintograde has quit [Ping timeout: 252 seconds]