#pyqt | Logs for 2019-02-15

Back
[00:13:19] -!- malberts has joined #pyqt
[00:27:24] -!- Grange has joined #pyqt
[00:57:55] <Grange> I think I need to define the mimeType() and mimeData() in the model. But I'm faced with another problem.
[00:59:31] <Grange> setting a QTreeWidget's setDragDropMode() from InternalMove to DragDrop causes the dragged item to lose its hidden columns.
[00:59:59] <Grange> is that to be expected? I'm quite confused.
[01:05:36] <Grange> I've put it here https://stackoverflow.com
[04:31:30] -!- ren0v0 has joined #pyqt
[05:12:51] -!- Grange has quit [Remote host closed the connection]
[07:34:15] -!- kdas_ has joined #pyqt
[07:34:29] -!- kushal has quit [Quit: ZNC 1.7.1 - https://znc.in]
[07:35:42] -!- [Yorch] has joined #pyqt
[07:36:02] <[Yorch]> Hi all
[07:38:01] <[Yorch]> I have a problem with PyQt5 and matplotlib
[07:38:03] <[Yorch]> https://pastebin.com
[07:38:32] <[Yorch]> Can't make this to work, as if I try to call self.PlotTest() from a slot, the plot doesn't show up
[07:39:04] <[Yorch]> If I call self.PlotTest() from GrainPipeWindowLogic.__init__ it works :)
[07:39:13] <[Yorch]> Can anyone please help?
[07:45:19] -!- kdas_ has quit [Ping timeout: 256 seconds]
[07:45:55] -!- kushal has joined #pyqt
[08:04:00] -!- n1` has quit [Ping timeout: 250 seconds]
[08:49:08] -!- Siecje has joined #pyqt
[08:57:36] <[Yorch]> Still looking at the issue. Does anyone has experience with PyQt5 and matplotlib please?
[08:58:44] <Avaris> [Yorch]: yes, but i kinda need a runnable example
[09:05:46] <[Yorch]> Thanks Avaris, I can share a PyCharm project if it helps
[09:06:00] <[Yorch]> ?
[09:12:57] -!- n1` has joined #pyqt
[09:18:49] -!- malberts has quit [Quit: Leaving.]
[10:02:23] <altendky> [Yorch]: the pycharm part probably isn't relevant. Can you just add some code to the paste above that actually creates the objects and runs stuff? Consider sscce.org. also, if you put `1/0` in importButton_clicked do you see a traceback?
[10:12:29] <[Yorch]> Thanks altendky, the program enters importButton_clicked. I managed to plot what I need with a QGraphicsScene, so I'm going to use it for now.
[10:13:09] <[Yorch]> Cheers all!
[10:13:14] -!- [Yorch] has quit [Quit: Page closed]
[10:14:02] <altendky> ... not really what i asked, but oh well
[10:14:45] <Avaris> with a qgraphicsscene? :o
[10:47:55] -!- Safa_[A_boy] has joined #pyqt
[10:54:08] -!- daegontaven has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
[10:54:59] -!- daegontaven has joined #pyqt
[11:35:08] -!- n1` has quit [Ping timeout: 246 seconds]
[11:41:49] -!- BPL has joined #pyqt
[11:41:49] <The-Compiler> BPL: btw, what are you planning to switch to, instead of QScintilla? (This message has been postponed on 2019-02-14 17:39:30.)
[12:15:51] -!- The-Compiler has quit [Quit: WeeChat 2.3-rc1]
[12:20:35] -!- The-Compiler has joined #pyqt
[12:31:41] -!- n1` has joined #pyqt
[13:01:16] <n1`> The-Compiler: today we implemented pdf.js and it works flawlessly
[13:01:49] <n1`> The-Compiler: i had a bit stuggle with linking the js files to the html file i load into the engine but except that works like a charm
[13:04:57] <The-Compiler> n1`: is that code public? :)
[13:05:33] <n1`> The-Compiler: nope...but I guess its publicable... if you want i can upload it ;)
[13:06:25] <The-Compiler> n1`: yeah, would be cool, to see what you did different to me
[13:08:33] <n1`> The-Compiler: i have an html templat that i load, substitude a web params, like libs path and pdf url and then i load it into engine.... the html + js wrote frontend guy .... but I had to onem ore struggle with callback when a user changes pdf page - it got called too soon.
[13:08:45] <n1`> The-Compiler: i will upload a that
[13:11:11] <n1`> The-Compiler: https://pastebin.com
[13:11:20] <n1`> The-Compiler: that some py snippet
[13:11:59] <n1`> The-Compiler: https://pastebin.com
[13:12:07] <n1`> The-Compiler: thats the template i load into the engine
[13:13:04] <n1`> The-Compiler: i wanted to keep all the frontend stuff inside the themplate because its much easier and cleaner to substitude a few placeholders that generate the code in python
[13:13:29] <n1`> The-Compiler: also...the code is messy and undocumented... we are currently in prototype stage
[13:15:29] <n1`> btw... to our previous convo about pyside2 .... related reddit post - https://www.reddit.com
[13:27:04] -!- n1` has quit [Ping timeout: 272 seconds]
[13:28:55] -!- n1` has joined #pyqt
[13:42:23] -!- n1` has quit [Ping timeout: 258 seconds]
[14:13:42] -!- BPL has quit [Ping timeout: 246 seconds]
[14:16:48] -!- BPL has joined #pyqt
[14:24:38] -!- BPL has quit [Ping timeout: 245 seconds]
[14:24:53] -!- BPL has joined #pyqt
[14:43:20] -!- n1` has joined #pyqt
[14:51:16] -!- n1` has quit [Ping timeout: 268 seconds]
[15:45:41] -!- Safa_[A_boy] has quit [Quit: Leaving]
[16:41:54] -!- mintograde has joined #pyqt
[16:50:52] -!- Siecje has parted #pyqt
[16:52:14] -!- david_boddie has joined #pyqt
[17:13:23] -!- david_boddie has parted #pyqt
[17:31:10] <Avaris> well... pyqt5 docs is literally links to the c++ docs
[17:32:38] <The-Compiler> Avaris: not anymore
[17:33:05] <altendky> The-Compiler: where are the new ones? are they actually linked 'officially'?
[17:33:33] <Avaris> not this one: http://pyqt.sourceforge.net
[17:35:01] <The-Compiler> https://www.riverbankcomputing.com
[17:35:15] <The-Compiler> ("Modules"/"Classes" at the bottom right when viewing the docs)
[17:35:39] <The-Compiler> granted, much of it is just "TODO", but that might change: https://www.riverbankcomputing.com
[17:36:27] <altendky> i wonder how long it'll take me to bother using them
[17:37:14] <altendky> first off, i'd have to get a style for it to get rid of the white background. then retrain my brain because it's so used to the qt c++ stuff
[17:38:42] <BPL> i don't see any good reason for not continuing using the good old qt5 c++ docs... it seems to me like just a waste of Phil's energy/time attempting to provide autogenerated useless pyqt docs tbh... :/
[17:39:11] <altendky> i don't go so far as useless, but i do think the main issue with them is that people fear them
[17:39:42] <BPL> think about it... it's like another typical case of duplicated information (be it code or docs)... c++ docs are extremly awesome (they've always been)
[17:40:55] <The-Compiler> BPL++
[17:42:13] <altendky> BPL: yes, but useless is too far. certainly it has use for people that don't know c++ syntax etc. i mean it'd be nice to have, but like you i wouldn't prioritize it
[17:42:45] <altendky> even if they could just let their eyes glaze over and mostly ignore the syntax. "oh look, it's a class name, i should probably create an instance of that class"
[17:43:01] <altendky> (when reading some c++ example code)
[17:43:33] <Avaris> ok, i prefer a link to c++ docs rather than a ton of "TODO"s tbh :)
[17:53:55] -!- thomasross has joined #pyqt
[18:36:38] -!- BPL has quit [Quit: Leaving]
[22:05:07] -!- mintograde has quit [Ping timeout: 240 seconds]