#pyqt | Logs for 2019-02-11
Back
[00:25:30] -!- malberts has joined #pyqt
[05:00:59] <Mrokii> Avaris: What do you mean? I'm using it (in theory) as a way for the user to choose already available options and to let them add new entries. Though I have a feeling, as if the behaviour of the signals is kind of weird.
[05:57:12] -!- frispete has quit [Quit: Konversation terminated!]
[05:59:24] -!- frispete has joined #pyqt
[06:34:13] -!- mintograde has joined #pyqt
[06:45:03] -!- mintograde has quit [Ping timeout: 245 seconds]
[06:54:35] -!- grumpytetra has joined #pyqt
[07:29:54] <Avaris> Mrokii: isn't it default for combobox? why do you need to use any signals?
[07:37:42] <Mrokii> Avaris: I was trying to implement a ComboBox that allows the user to change the currently selected entry, not just add entries. but I guess that's not very intuitive anyway. If I just go with the default behaviour, I don't need any special signals.
[07:40:08] <Mrokii> default behaviour being that new strings entered are added to the items. Although I noticed that a new entry is only actually added when one uses "enter", not when using "Tab". Although that makes sense from a technical point of view, then there's the fact the new string is still visible in the edit-field of the ComboBox, even though it's not actually added to the boxes' items.
[07:53:35] <Avaris> for "tab", FocusOutEvent is probably the best
[07:54:15] -!- themba has joined #pyqt
[07:54:23] <themba> good day
[07:54:39] <themba> I'm having trouble installing pyqt4 from source
[07:54:59] <themba> I can compile and install according to the manual: http://pyqt.sourceforge.net
[07:55:26] <themba> but when I try to import PyQt.QtGui (or any other module for that matter) it is not found
[07:55:58] <themba> I must admit that my python is installed in a non-standard location
[07:56:09] <Avaris> themba: should be PyQt4?
[07:56:11] <Mrokii> Avaris: Yeah, I turned to that solution as well. Adding the "currentText()" to the ComboBox when it isn't already in the list after the widget lost focus works.
[07:56:37] <themba> but I have directed my python to that by adding --destdir to the configure line
[07:57:40] <themba> Avaris: sorry, that's just a type on irc. I can import PyQt4 but inside it are only sip and uic none of the real modules
[07:58:15] <themba> I believe that my sip files are installed in the wrong location, but how can I find our where python/ipython looks for these sip files?
[07:59:19] <Avaris> before that, can you use virtualenv?
[07:59:47] <themba> They are now in $PYTHON_ROOT/share/sip/
[07:59:56] <themba> that's where make install puts them
[08:01:29] <themba> Avaris: I don't think I have virtualenv available
[08:03:47] <themba> I'm also not sure how it would help
[08:04:09] -!- malberts has quit [Ping timeout: 246 seconds]
[08:08:18] <Mrokii> themba: This is just a guess, but I assume that, within virtualEnv, you could install PyQt in the envs' "standard" location, so there should be no issue for your script finding the modules.
[08:08:54] <themba> I must confess that I have not used virtualenv for a long time
[08:09:31] <themba> you think I could start a virtualenv and do a configure/make/make install cycle without additional arguments?
[08:11:13] <themba> or is that not what you're suggesting?
[08:11:35] <themba> my PYTHON_ environment is already non-standard with many search paths
[08:11:53] <themba> do you think virtualenv will maintain those?
[08:13:10] <Mrokii> I don't know, as I've only just begun using VirtualEnv. I heard here on IRC about how to use it and found this: https://packaging.python.org
[08:13:14] <Mrokii> Maybe that will help.
[08:13:59] <Avaris> themba: yes, it should be a standard install given that you activate the virtualenv or use python exec for it
[08:22:02] <themba> Avaris: compiling again now. The configure script did pickup on the virtualenv locations and has used that for both python modules and sip files
[08:31:12] <themba> Avaris: nope. still cannot find any of the modules
[08:33:01] <themba> Ok: I've noticed the following: in my site-packes/PyQt4/ there are compiled modules in files that all end with "_s.a"
[08:34:15] <themba> By comparison: on my desktop pc with a recent package manager installed version of PyQt there is no _s and the modules are .so instead of .a
[08:34:52] <themba> this is probably related to the fact that I had to add --static to the build flags because my qt is apparently built statically
[08:35:09] <themba> does this somehow prevent python from finding these modules?
[08:50:40] -!- malberts has joined #pyqt
[09:12:57] <themba> that is indeed the case: looking somewhat deeping I found that the .a files can only be used to build a new python that has pyqt built-in statically
[09:15:04] <themba> This does make me wonder: the reason I have to do this is because the system in question only has python2.6 and I built 2.7 in userspace. I discovered that the system does have PyQt4 for python2.6 installed as so (dynamic module) files. That makes me wonder: how could the package maintainers of the distro have build those so modules if the qt insta
[09:15:05] <themba> ll on this os is statically linked?
[10:10:20] -!- grumpytetra has quit [Quit: -bye]
[10:14:48] -!- altendky has joined #pyqt
[11:02:46] <Avaris> themba: can you build without `--static`?
[11:03:05] -!- n1` has joined #pyqt
[11:03:44] <themba> no, that's what I tried first but the configure script was rather adament that it needed --static because it found a static version of qt
[11:04:03] <themba> Further inspection has now revealed that this is a mistake in the configure script
[11:04:26] <Avaris> oh, ok. it shouldn't force static because qt was static
[11:04:37] <n1`> if i want another window in my app should I go for another MainWindow or QWidget or QWindow? A want to display QWebEngineView in there.
[11:04:43] <themba> It should but it misdetects
[11:04:56] <altendky> n1`: whatever sort of window you want. if you want the main window features, use it
[11:05:18] <Avaris> n1`: probably not qwindow
[11:05:45] <themba> Avaris: I went into the srpm (sources of package from distro) and found that they apply a very ugly patch to force the static-detection to always return false
[11:05:48] <altendky> Avaris: what's bad about qwindow?
[11:05:52] <themba> so I did the same and that works
[11:06:02] <Avaris> altendky: not a widget?
[11:06:15] <altendky> Avaris: is there a proper use for it?
[11:06:19] <n1`> altendky: cool... and dumb question... what is the advantage of going for mainwindow instead of qwidget? First of all I was like... main window that should be only one window at a time because it's main.
[11:06:33] <Avaris> altendky: "The QWindow class represents a window in the underlying windowing system."
[11:06:34] <n1`> Avaris: that the base class right?
[11:06:49] <altendky> n1`: it has a status bar and menu already in it and has some dock features and such
[11:07:12] <n1`> altendky: ah cool...thx
[11:08:44] <Avaris> n1`: if the qwebengineview is your only widget, you can also show that by itself as a window
[11:12:51] <n1`> Avaris: yes the only one... okay cool
[11:13:39] <n1`> speaking of qwebenginewidget... i had no luck to render pdf from an url... says cannot load plugin
[11:14:16] <n1`> i know there is some work in progres of pdfium but its not released yet
[11:19:22] <Avaris> maybe pdf.js
[11:19:49] <Avaris> (didn't actually use/try, so no promises)
[11:20:31] <n1`> yup...
[11:20:38] <n1`> found this cool thing
[11:20:44] <n1`> https://drive.google.com
[11:21:18] <Avaris> that doesn't require authentication?
[11:22:04] <n1`> nah
[11:22:06] <altendky> https://drive.google.com just worked in incognito (well, it shows the raw html in a thing
[11:22:34] <altendky> n1`: what does it do?
[11:22:35] <n1`> altendky: use pdf url
[11:22:42] <Avaris> i think you're supposed to give pdf :)
[11:22:52] <altendky> i would have had to find a pdf url to do that
[11:22:59] <n1`> google
[11:23:09] <altendky> i am aware i can, i didn't start there...
[11:23:21] <altendky> point is, what is the point of this thign?
[11:23:50] <Avaris> render pdfs on browser?
[11:23:52] <n1`> probably to embed pdf to browsers who cannot show them inside an object/embed tag
[11:24:11] <n1`> just like qt
[11:25:38] <altendky> n1`: i don't know but have you looked at qutebrowser? can it handle pdfs?
[11:30:04] -!- AbleBacon has joined #pyqt
[11:37:03] <n1`> yup i inspected that in the morning... but it bundles all the stuff by itself
[11:39:45] -!- malberts has quit [Ping timeout: 246 seconds]
[11:48:11] <The-Compiler> n1`: what do you mean?
[12:06:59] -!- malberts has joined #pyqt
[12:16:37] <agile_prg> has anyone here ever added a font to qt designer?
[12:24:15] -!- Siecje has joined #pyqt
[13:06:36] -!- malberts has quit [Ping timeout: 250 seconds]
[16:45:38] -!- mintograde has joined #pyqt
[16:58:19] -!- Siecje has parted #pyqt
[17:01:00] <agile_prg> I figured out the fonts thing
[18:36:58] -!- taven has joined #pyqt
[18:38:30] -!- JanC_ has joined #pyqt
[18:40:13] -!- JanC has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
[18:40:13] JanC_ is now known as JanC
[18:40:38] -!- argoneus_ has joined #pyqt
[18:46:33] -!- daegontaven has quit [*.net *.split]
[18:46:34] -!- hackvana has quit [*.net *.split]
[18:46:35] -!- argoneus has quit [*.net *.split]
[18:46:36] taven is now known as daegontaven
[22:03:54] -!- hackvana has joined #pyqt
[22:13:48] -!- mintograde has quit [Ping timeout: 245 seconds]
[22:43:00] -!- Mrokii has quit [Ping timeout: 246 seconds]
[22:56:33] -!- Mrokii has joined #pyqt