mirror of
https://github.com/NaN-tic/nanscan.git
synced 2023-12-14 03:12:57 +01:00
Let test-scandialog be cross platform.
This commit is contained in:
parent
a94e41fe17
commit
021030b26c
|
@ -1,11 +1,17 @@
|
|||
from PyQt4.QtGui import *
|
||||
from scandialog import *
|
||||
import sys
|
||||
import os
|
||||
|
||||
app = QApplication( sys.argv )
|
||||
|
||||
dialog = ScanDialog()
|
||||
FileSaveThreaded.directory = 'c:\\images'
|
||||
|
||||
if os.name == 'nt':
|
||||
FileSaveThreaded.directory = 'c:\\images'
|
||||
else:
|
||||
FileSaveThreaded.directory = '/tmp'
|
||||
|
||||
dialog.exec_()
|
||||
|
||||
app.exec_()
|
||||
|
|
Loading…
Reference in a new issue