OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio


Welcome Guest ( Log In | Register )

> qcop not reaching Python apps
post Jul 13 2004, 11:08 PM
Post #1

Group: Members
Posts: 366
Joined: 4-November 03
From: Slovakia
Member No.: 850

Hi all,

I have a little problem with Python apps. Say I have a trivial PyQt application in /root/test.py:
import sys
from qt import *
from qtpe import *
class MyWin(QVBox):
   def __init__(self, parent):
       QVBox.__init__(self, parent)
       label = QLabel(self)
       label.setText('Hello, world!')

I type chmod +x test.py and then ./test.py . The app runs OK but when I open another konsole session and type qcop QPE/Application/test.py 'quit()' it doesn't come through.

How do I know that QPE/Application/test.py is the right channel? When the app starts the file /tmp/qcop-msg-test.py is created. I also tried other channels like QPE/Application/python but the results are the same. The funniest thing, though, is that when I say qcop QPE/System 'quit()' the app does quit - and it is the only one to do so! Konsole continues to run, as well as the rest of Opie.

This is a major problem because the taskbar uses qcop to raise() an application when you tap its taskbar icon. So when I set up my app to be launched through an icon, it misbehaves: once it's "minimized" e.g. by pressing the Home button, there is no way to bring it back up - it has to be shut down with SIGTERM.

What I think is happening is that either the app fails to actually create a QCop channel or it creates a different one than Qtopia/Opie expects. Can anyone tell me how to find out the name of the channel a QPEApplication creates? Thanks in advance.

Go to the top of the page
+Quote Post
Start new topic
post Aug 28 2008, 08:52 PM
Post #2

Group: Members
Posts: 447
Joined: 17-November 05
Member No.: 8,551

About qcop channels, the qcoptest tool may help you figure it out, although it's a matter of trial and error, but it will show you when a message gets thru I believe. Here's what I know about qcoptest:


Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 24th May 2018 - 09:53 AM