WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-22-2007, 07:16 PM
AlyssaK AlyssaK is offline
Member
 
Join Date: Dec 2006
Posts: 16
Status bar in user interface

Hi everyone,

I'm looking at creating a status bar to display information. I'm using the following code as a starting point, however there is a syntax error! Its as really basic problem I know.

statusBar = viz.addTextbox()
statusBar.translate(0.928,0.98)

Traceback (most recent call last):
File "<string>", line 11, in ?
File "main.py", line 5, in ?
from gui import GUI
File "gui.py", line 68
statusBar = viz.addTextbox()
^
SyntaxError: invalid syntax

If you have alternate code please post a reply or have found where im going wrong.

Thanks!!!
Reply With Quote
  #2  
Old 10-22-2007, 10:21 PM
AlyssaK AlyssaK is offline
Member
 
Join Date: Dec 2006
Posts: 16
I have updated the code and the same syntax error exists

statusbox = viz.addTextbox()
statusbox.length(2)
statusbox.setPosition(.5,.8)
statusbox.overflow(viz.OVERFLOW_GROW)
Reply With Quote
  #3  
Old 10-23-2007, 10:14 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Can you post the code for your entire script using the [code][/code] tags? The error you are getting is either caused by the previous line or bad indentation.
Reply With Quote
  #4  
Old 10-26-2007, 12:05 AM
AlyssaK AlyssaK is offline
Member
 
Join Date: Dec 2006
Posts: 16
Thanks for the reply.

It was bad indentation. Solved by Cntrl A and Alt 'T' (Tabify region).
Reply With Quote
Reply

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


All times are GMT -7. The time now is 12:48 AM.


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