I'm working on a PyKDE4/PyQt4 application, Autokey, and I noticed that when I send the program a CTRL+C, the keyboard interrupt is not processed until I interact with the application, by ie. clicking on a menu item or changing a checkbox.…
How should I go about moving a window created with PySide using the window manager?
I see that kdeui has the NETRootInfo class with a moveResizeRequest method, which does exactly what I want. The following:
from PySide.QtCore import Qt
from PyKDE4…
I am writing a desktop application in Python (3.4) on Linux using Qt (4.8) and PyQt.
Is there a way to use/import Okular's pdf view functionality as a widget? If yes, how?
I am trying to develop a plasmoid using python. I have tried eclipse with pydev, vim with pythoncomplete, PIDA and also Komodo, but none of them could give me autocmpletion for method names or members for the classes belonging to PyQT4 or PyKDE4. I…
How do set a global (system wide) keyboard shortcut, i.e. a shortcut that can be activated when any windows are in focus?
I'm implementing a window switcher and need to bind a keystroke to some some function.
I can see that KGlobalAccel might be…
I am trying to create a properties panel as part of a larger application, which uses PyKDE and PyQT. QStackedWidget and QStackedLayout look right, but the situation is a bit complicated:
The QStacked(Widget|Layout) is a subitem of a splitter,
The…
With PyKDE4.kio to select multiple files I can use KFileDialog.getOpenFileNames (instead of KFileDialog.getOpenFileName). What can I do if I want to select multiple directories? There is only KFileDialog.getExistingDirectory.
Using…
I'm trying to get started using Python for KDE development. What is the canonical source for PyKDE4 reference documentation? The Python page of KDE TechBase is surprisingly sparse on details, and googling hasn't helped.
I'm trying to use PyKDE, PyKDE.kdecore.KStandardDirs to be precise. This method is called with two strings according to the documentation and according to the PyQt4 documentation, I can use standard Python strs instead of QString.
This doesn't…
Am working on a pyqt app, done the ui via qt-designer 4.8.1, and generated the corresponding py file using pykdeuic4 (available on OpenSuse 12.2), but can't find an equivalent for pyrcc4 to hadle the *.qrc files.
what's the equivalent…
I am new to PyQt and am currently working on a project which is was written in PyQt4. I need to update it to PyQt5 and have done most of it. However, when it comes to PyKDE, it generates the following error:
from PyKDE4.kdeui import KVBox, KHBox,…
The python file converted from .ui created by qt designer shows
ImportError: No module named kseparator. code is
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
…
I'm using the KHTMLPart component from the PyKDE (in Python) library to download some webpages in the background and return sizes of certain elements in pixels. I don't really need any visual output from this script, indeed I will probably run it on…
I have an applet that uses KStatusNotifierItem of PyKDE4. In Arch Linux with versions as such (Qt - 4.8.4, KDE Development Platform - 4.9.5) taken from kde4-config -v, it works.
However, in Kubuntu 12.10 with versions (Qt - 4.8.3, KDE Development…
I'm developing a little app (precisely it's a KDE4 plasmoid) in PyQt/PyKde.
In my app I have a KListWidget filled with some rows, see this picture:
http://img212.imageshack.us/img212/8444/sshot3.jpg
I need to implement a drag&drop action for the…