Questions tagged [pykde]

PyKDE provides KDE UI support for Python.

PyKDE provides KDE user interface support for Python. It is licensed under GPL 2.

15 questions
6
votes
1 answer

Handling KeyboardInterrupt in a KDE Python application?

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.…
lfaraone
  • 49,562
  • 17
  • 52
  • 70
5
votes
1 answer

Move window using PySide and PyKDE4

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…
D K
  • 5,530
  • 7
  • 31
  • 45
3
votes
2 answers

How to use KDE Okular's document view widget in a Python Qt app?

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?
s-m-e
  • 3,433
  • 2
  • 34
  • 71
3
votes
2 answers

Autocompletion not working with PyQT4 and PyKDE4 in most of the IDEs

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…
rangalo
  • 5,448
  • 8
  • 46
  • 66
2
votes
0 answers

Global hotkey in PyKDE4 or PyQT4

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…
Chris
  • 617
  • 2
  • 6
  • 18
1
vote
1 answer

How to use QStackedWidget/QStackedLayout in PyQT/PyKDE?

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…
Jasmijn
  • 9,370
  • 2
  • 29
  • 43
1
vote
1 answer

How to select multiple directories with KFileDialog?

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…
Germar
  • 436
  • 4
  • 24
1
vote
1 answer

PyKDE4 documentation

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.
Rob H
  • 14,502
  • 8
  • 42
  • 45
1
vote
1 answer

"argument 1 has unexpected type 'str'"

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…
Nova
  • 2,623
  • 4
  • 26
  • 45
1
vote
2 answers

Equivalent of pyrcc4 on KDE

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…
JWL
  • 13,591
  • 7
  • 57
  • 63
0
votes
0 answers

PyKDE: Migrating from PyQt4 to PyQt5

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,…
0
votes
1 answer

ImportError for kseparator in python file converted from .ui by pyqt ( using qt designer)

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): …
amg
  • 45
  • 1
  • 8
0
votes
2 answers

Is it possible to use KHTMLPart completely from console?

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…
VoY
  • 5,479
  • 2
  • 37
  • 45
0
votes
1 answer

KStatusNotifierItem not working in newer versions of KDE 4

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…
user1591276
  • 183
  • 1
  • 11
-1
votes
1 answer

Drag & Drop in KListWidget (PyQt/PyKde programming)

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…
JuanDeLosMuertos
  • 4,532
  • 15
  • 55
  • 87