caddy_standalone.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 '''
00003 Created on Sep 10, 2013
00004  \todo Add license information here
00005 @author: dnad
00006 '''
00007 import os
00008 import sys
00009 import rospy
00010 import PyQt4 as python_qt_binding
00011 from caddy_gui import CaddyGui
00012 from caddy_plug import CaddyGuiROS
00013 from PyQt4 import QtGui, uic
00014 
00015 def loadUi(file, widget):
00016     return 
00017 
00018 if __name__=="__main__":
00019     app = QtGui.QApplication(sys.argv)
00020     rospy.init_node("caddy_gui")
00021     gui = CaddyGui()
00022     ros = CaddyGuiROS(gui)
00023     ui_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'resource/CaddyGui.ui')
00024     # Extend the widget with all attributes and children from UI file
00025     gui._widget = uic.loadUi(ui_file)
00026     gui._widget.show();
00027     # Give QObjects reasonable names
00028     gui._widget.setObjectName('CaddyGui')
00029     gui.setup()
00030     ros.setup()
00031     
00032     sys.exit(app.exec_())
00033     


caddy_ui
Author(s): Gyula NagyJane Doe
autogenerated on Fri Feb 7 2014 11:36:10