Beispiel #1
0
#
# openWNS is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License version 2 as published by the
# Free Software Foundation;
#
# openWNS is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################

import sys
import os
import traceback
import Windows
from PyQt4 import QtGui

application = QtGui.QApplication(sys.argv)
application.setQuitOnLastWindowClosed(True)
application.setApplicationName("ResourceViewer")
application.setWindowIcon(QtGui.QIcon(":/icons/icon.png"))
application.setOrganizationName("TUM")
application.setOrganizationDomain("www.lkn.ei.tum.de")
widget = Windows.Main()
widget.show()
sys.exit(application.exec_())
Beispiel #2
0
import Windows
app = Windows.Main()
Dir = "D:\\Programming\\Python"
app.searching_dir = Dir
app.main()
app.title("File Explorer")
app.mainloop()