Fix bug 822 - "Can't use QApplication without X"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
1be25c54bb
commit
933669eeb7
4 changed files with 52 additions and 14 deletions
13
tests/QtGui/bug_882.py
Normal file
13
tests/QtGui/bug_882.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from PySide.QtGui import *
|
||||
from PySide.QtCore import *
|
||||
import os
|
||||
|
||||
if "DISPLAY" in os.environ:
|
||||
del os.environ["DISPLAY"]
|
||||
|
||||
app = QApplication([], False)
|
||||
QTimer.singleShot(0, app.quit)
|
||||
app.exec_()
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue