WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 08-02-2010, 09:52 AM
malmct malmct is offline
Join Date: Aug 2010
Posts: 3
Tkinter interface

I'm building a program based around a tkinter interface, which is supposed to start vizard rolling. However, when I try and do this, vizard gets caught at the loading screen and the splash animation plays endlessly. How do I fix this?
Reply With Quote
Old 08-02-2010, 02:10 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,466
The following example shows how to embed the Vizard graphics window into a TKinter application:
import viz
from Tkinter import *

class VizardApp(Frame):
	def __init__(self, master=None):
		Frame.__init__(self, master,width=800, height=600)
		#Embed vizard using the viz.EMBEDDED flag and passing handle to existing window
		#Initialize Vizard environment
		ball = viz.add('ball.wrl',pos=(0,1.8,2))
		#Need to setup timer to manually update vizard engine

	def updateVizard(self):
		"""Update the vizard engine"""

# create the application
myapp = VizardApp()

# set title of application
myapp.master.title("Vizard Tkinter example")

# start the program
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
tkinter window focus John P Vizard 4 08-31-2009 05:51 AM
viz.Screen Images overlap and Interface Button jaylocco Vizard 1 08-28-2009 03:18 PM
how to write the interface code nasr Vizard 17 05-19-2009 04:21 AM
3D Music Interface Psirus Vizard 3 02-26-2008 11:48 AM
tkinter setup for 3.0 jrodman Vizard 2 11-16-2006 02:50 PM

All times are GMT -7. The time now is 11:58 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC