コード例 #1
0
print "--"

#python specifics
print "Python build     ", platform.python_build()
print "Python compiler  ", platform.python_compiler()

print "--"

#osg specifics
try:
    try:
        import osg
    except:
        print "import osg failed"
    print "osg.osgGetLibraryName                  ", osg.osgGetLibraryName()
    print "osg.osgGetVersion                      ", osg.osgGetVersion()
    print "osg.osgGetSOVersion                    ", osg.osgGetSOVersion()
    print "osg Python library location          : ", osg.__file__
    print "osg Dynamic linked library location  : ", osg._osg

except:
    print "Error accessing osg"
    pass

print "--"

#osgDB specifics
try:
    try:
        import osgDB
コード例 #2
0
ファイル: osgidentify.py プロジェクト: cmbruns/osgswig
print "--"

#python specifics
print "Python build     ",platform.python_build()
print "Python compiler  ",platform.python_compiler()

print "--"

#osg specifics
try:
    try:
        import osg
    except:
        print "import osg failed"
    print "osg.osgGetLibraryName                  ", osg.osgGetLibraryName()
    print "osg.osgGetVersion                      ", osg.osgGetVersion()
    print "osg.osgGetSOVersion                    ", osg.osgGetSOVersion()
    print "osg Python library location          : ", osg.__file__
    print "osg Dynamic linked library location  : ", osg._osg

except:
    print "Error accessing osg"
    pass

print "--"

#osgDB specifics
try:
    try:
        import osgDB
コード例 #3
0
	def OnAbout(self, evt):
		title = 'About'
		text = 'Python ' + sys.version + '\nwxPython ' + wx.VERSION_STRING +  '\n' + osg.osgGetLibraryName() + ' ' + osg.osgGetVersion()
		dialog = wx.MessageDialog(self, text, title, wx.OK | wx.ICON_INFORMATION)
		dialog.ShowModal()
		dialog.Destroy()