You can reimplement closeEvent, as I suggested and call either deleteLater() or destroy() from there, as in this example.
#!/usr/bin/python
from PyQt4.QtCore import *
from PyQt4.QtGui import *...
Type: Posts; User: tseliot; Keyword(s):
You can reimplement closeEvent, as I suggested and call either deleteLater() or destroy() from there, as in this example.
#!/usr/bin/python
from PyQt4.QtCore import *
from PyQt4.QtGui import *...
Maybe you can reimplement QWidget.closeEvent ?
I can't be sure about what's going on without seeing the full code.
Maybe something like this?
sys.exit(app.exec_())
Where "app" is your QApplication:
app = QtGui.QApplication(sys.argv)
Here I tried to help another user who was trying to perform the same task.
Ubuntu uses utf-8 and here (see the end of "Initializing a String") the documentation says that the qPrintable() macro "is equivalent to calling <QString>.toAscii().constData()".
Here it says that...
Maybe you can try Clutter.
Of course you're getting an error. mscn should be a pointer.
QProcess *mscn;
mscn = new QProcess();
now you won't need to use & when you connect the signals.
Furthermore scn and mscn are...
It's not what I meant.
First of all you will have to connect the signals so that when an event is emitted, a member function will be called:
connect( m_Scn,...
It's all in the docstrings:
import XKit.xorgparser
help(XKit.xorgparser)
or
import XKit.xutils
help(XKit.xutils)
NOTE: xutils has some features you might want to use (it's all documented).
I developed X-Kit which is installed by default in Ubuntu now (since Intrepid) as it's already used by Jockey (Restricted Drivers Manager), EnvyNG, (in some cases) Update Manager and Mythbuntu. The...
QProcess::waitForFinished() will make the interface hang as it will make the program wait for the process to finish.
You should do it in a different way, without using waitForFinished.
Use a...
Moved to the Programming Talk.
The problem is described here.
I provided a fix but it looks like the packages are still in the hardy-proposed repository. Only one person wrote to confirm that the fix solves the problem. Please...
You might want to use PolicyKit.
Instead of doing aboutdialog1->run() (which locks the application until a response is given) you can connect the response signal emitted by the dialog to a function so that when a user clicks on the...
post the output of this command:
sudo aptitude search linux
try with linux-source.
Moved to a more appropriate section.
Type this command:
lsb_release -r
and you will get something like this:
Release: 8.04
Have a look at the documentation.
Ok, I see your point (and you're right) however it is also true that it would take a perverted mind to use the names which you can see in the class reference :-P
Just kidding, eh
Try the class browser plugin. Gedit rocks ;)
I'm not as experienced as you and I know I can trust you, however this is used (and therefore suggested) in the book of PyQt4:
from PyQt4.QtCore import *
from PyQt4.QtGui import *
The kernel, (most of) GNOME, Xorg, etc. but of course the only knowledge of C won't be enough in such cases. You will have to read the respective documentation.
Of course, if you become a...