Use logging instead of print

This commit is contained in:
ColinDuquesnoy
2014-05-16 23:34:59 +02:00
parent 2d38f55673
commit 7e625b521c
3 changed files with 17 additions and 6 deletions
+5 -2
View File
@@ -36,11 +36,13 @@ Requirements:
the example
"""
import logging
import sys
from PySide import QtGui, QtCore
from os.path import abspath, dirname
# make the example runnable without the need to install
from os.path import abspath, dirname
sys.path.insert(0, abspath(dirname(abspath(__file__)) + '/..'))
import qdarkstyle
import example_pyside_ui as example_ui
@@ -48,7 +50,8 @@ import example_pyside_ui as example_ui
def main():
"""
Application entry point
"""
"""
logging.basicConfig(level=logging.DEBUG)
# create the application and the main window
app = QtGui.QApplication(sys.argv)
window = QtGui.QMainWindow()