WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 06-27-2006, 07:19 AM
giancamati giancamati is offline
Join Date: Jun 2006
Posts: 27
Talking file dialog

Hello everybody, I am new to vizard. I wonder if exists a method to open a file dialog box which permits to navigate in the directories structure and choose the wrf to open.

Thank you so much
Reply With Quote
Old 06-27-2006, 09:37 AM
Gladsomebeast Gladsomebeast is offline
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
Because Vizard is a python interpriter, you can use python libraries to do this. Check the web for python based methods.
Paul Elliott
WorldViz LLC
Reply With Quote
Old 06-27-2006, 11:30 PM
tobin tobin is offline
WorldViz Team Member
Join Date: Feb 2003
Posts: 251
Vizard comes standard with pythonwin's win32api, win32gui, and win32ui modules. To do what you're looking for, simply:

import win32ui

inFileDlg = win32ui.CreateFileDialog(1, '', 'foo.txt')

outFileDlg = win32ui.CreateFileDialog(0, '', 'foo.doc')

inFileName  = inFileDlg.GetPathName()
outFileName = outFileDlg.GetPathName()

print inFileName
print outFileName
You can find more detailed doc on the win32ui methods here:
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

All times are GMT -7. The time now is 01:04 PM.

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