1
0
Fork 0
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:
Albert Cervera i Areny 2008-08-31 23:18:17 +02:00
parent a94e41fe17
commit 021030b26c

View file

@ -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_()