Is there any open file GUI
1 Attachment(s)
Can I build a GUI in vizard, like below, that allow user to open and choose some files and import them into vizard?
Attachment 349 |
I mean build a button, and when click the button, it can call an open file GUI in which people can browse and choose files to be open?
|
There's an example over in the Vizard 2.5 forum. Here's a link to it:http://forum.worldviz.com/showthread...light=win32gui
I've tried it under Vizard 3 and it works, no problem. Aaron |
Quote:
|
Sorry for bumping this thread but when I attempt to use the code in this example I get this error:
Code:
Traceback (most recent call last): I really need to be able to navigate to and open various files and this seemed the ideal way to do it except I can't get it to work!! I'd be really grateful for any ideas regarding this, Cheers |
Ok, I'm getting somewhere here I think. Here's what I am using now:
Code:
def ChooseFile(): However, what I would really like to do is open the selected file, so I tried adding: Code:
FILE = open(file, 'r') Code:
ÐÏࡱ So my question is - what am I doing wrong here, I just want a participant to be able to select a file which is then read in / parsed into useful chunks of data. Also when exiting winviz after running this I get a - "winviz.exe has encountered a problem and needs to close. We are sorry for the inconvenience." from windoze :confused: |
Hi nige777
This is what i use and it seems to work Code:
infile = open(file,"r") |
@TarkaDahl - thanks for the reply unfortunately it was my bad as I needed to be using the excellent 'xlrd' library to be able to work with Excel files :o
Nige |
All times are GMT -7. The time now is 11:38 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC