Re: [pygame] Select a File...

2007-08-01 Thread Ian Mallett
There's a wxPython list? I'll ask this question there then. On 8/1/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote: > > Ian Mallett wrote: > > I've got the basic file opener window, but it launches from a panel > > with a button on it just as in the demo. I've tried various things to > > only ha

Re: [pygame] Select a File...

2007-08-01 Thread Luke Paireepinart
Ian Mallett wrote: I've got the basic file opener window, but it launches from a panel with a button on it just as in the demo. I've tried various things to only have the filedialog, but it always crashes. Same for the the save window. Ian So why are you asking us on the Pygame list instead

Re: [pygame] Select a File...

2007-08-01 Thread Ian Mallett
I've got the basic file opener window, but it launches from a panel with a button on it just as in the demo. I've tried various things to only have the filedialog, but it always crashes. Same for the the save window. Ian import os import wx wildcard = ".WAV Audio (*.wav)|*.wav|"\ ".O

Re: [pygame] Select a File...

2007-08-01 Thread Ian Mallett
My current plan for this is to open the window as a new subprocess and use it to load or save a file. I'm making a player for audio files for fun, but I might use the same code later for something else. Ian

Re: [pygame] Select a File...

2007-08-01 Thread Luke Paireepinart
Ian Mallett wrote: I'm going to try using wxPython because the demo seems to be precisely what I want. Are you using this for a game or what?

Re: [pygame] Select a File...

2007-08-01 Thread Ian Mallett
I'm going to try using wxPython because the demo seems to be precisely what I want.

Re: [pygame] Select a File...

2007-08-01 Thread Laura Creighton
In a message of Wed, 01 Aug 2007 21:52:27 EDT, "Jason Coggins" writes: >What is the link to the archive of past messages in this user group? > >Jason http://aspn.activestate.com/ASPN/Mail/Browse/Threaded/pygame-users Laura

Re: [pygame] Select a File...

2007-08-01 Thread Jason Coggins
What is the link to the archive of past messages in this user group? Jason - Original Message - From: "Luke Paireepinart" <[EMAIL PROTECTED]> To: Sent: Tuesday, July 31, 2007 11:13 PM Subject: Re: [pygame] Select a File... Ian Mallett wrote: I think you want

Re: [pygame] Select a File...

2007-08-01 Thread Greg Ewing
Ian Mallett wrote: I don't know how to make code to make it go one directory higher. To do this for the actual current directory for the process, import os os.chdir(os.pardir) But if you're implementing a graphical file chooser, you probably don't want to change the cwd, but just keep tra

Re: [pygame] Select a File...

2007-08-01 Thread Laura Creighton
pgu was written by Phil Hassey. One day he decided he would like to have a file picker, and he just wrote it using pygame. So there is nothing magical about this, it is just hard work. And the nice thing is that he released all his code to us, so we can read it, and learn to do things like this

Re: [pygame] Select a File...

2007-08-01 Thread Brian Fisher
On 8/1/07, Ian Mallett <[EMAIL PROTECTED]> wrote: > Go to Microsoft Word. Go to File->Open. The window that opens is what I > want. > You should try to make your game in Microsoft Word then. Use macros. It will be hot. > I tried it, but it didn't work. I didn't spend too much time with it, > th

Re: [pygame] Select a File...

2007-08-01 Thread Ian Mallett
On 8/1/07, Dave LeCompte (really) <[EMAIL PROTECTED]> wrote: > > "Ian Mallett" <[EMAIL PROTECTED]> wrote: > > To everyone: pgu works to select the file. There are, however, a few > > glitches, like the first directory on the highest level is not > listed. I > > was also hoping for something like

Re: [pygame] Select a File...

2007-08-01 Thread Dave LeCompte (really)
"Ian Mallett" <[EMAIL PROTECTED]> wrote: > To everyone: pgu works to select the file. There are, however, a few > glitches, like the first directory on the highest level is not listed. I > was also hoping for something like a popup window. Any program with a > 'open' function has EXACTLY what I

Re: [pygame] Select a File...

2007-07-31 Thread Ian Mallett
On 7/31/07, Toni Alatalo <[EMAIL PROTECTED]> wrote: > > On Wednesday 01 August 2007 08:39:18 altern wrote: > > Ian Mallett(e)k dio: > > > By command-line I mean something where you select the file from the > > > console window. I once wrote a little program that does that, but > only > > > to lowe

Re: [pygame] Select a File...

2007-07-31 Thread Toni Alatalo
On Wednesday 01 August 2007 08:39:18 altern wrote: > Ian Mallett(e)k dio: > > By command-line I mean something where you select the file from the > > console window. I once wrote a little program that does that, but only > > to lower level directories. If I were to use a command-line thing, it i

Re: [pygame] Select a File...

2007-07-31 Thread Ian Mallett
Well, that's good, then, because we decided not to use it. I'll keep that in mind for future programs, though. On 7/31/07, altern <[EMAIL PROTECTED]> wrote: > > Ian Mallett(e)k dio: > > By command-line I mean something where you select the file from the > > console window. I once wrote a little

Re: [pygame] Select a File...

2007-07-31 Thread altern
Ian Mallett(e)k dio: By command-line I mean something where you select the file from the console window. I once wrote a little program that does that, but only to lower level directories. If I were to use a command-line thing, it would have to be able to access top-directory files. I don't k

Re: [pygame] Select a File...

2007-07-31 Thread Ian Mallett
Excellent. That's perfect! My thanks! Ian On 7/31/07, René Dudfield <[EMAIL PROTECTED]> wrote: > > This example shows you how to use the file dialog. > > examples/gui12.py > > cheers, > > On 8/1/07, René Dudfield <[EMAIL PROTECTED]> wrote: > > Hi, > > > > check out the examples directory that co

Re: [pygame] Select a File...

2007-07-31 Thread René Dudfield
This example shows you how to use the file dialog. examples/gui12.py cheers, On 8/1/07, René Dudfield <[EMAIL PROTECTED]> wrote: > Hi, > > check out the examples directory that comes with the download pgu download. > > You need an App class. > > Kind of like this... > > from pgu import gui > app

Re: [pygame] Select a File...

2007-07-31 Thread René Dudfield
Hi, check out the examples directory that comes with the download pgu download. You need an App class. Kind of like this... from pgu import gui app = gui.App() e = gui.Button("Hello World") app.run(e) Check out the examples/gui*.py files for more. Cheers, On 8/1/07, Ian Mallett <[EMAIL PR

Re: [pygame] Select a File...

2007-07-31 Thread Ian Mallett
title = gui.Label("My Title") main = gui.Container() #add stuff to the container... d = gui.FileDialog(title,main) d.open() ...doesn't crash, but I don't see anything, just a print: "gui.widget: creating an App"

Re: [pygame] Select a File...

2007-07-31 Thread Ian Mallett
Tutorial 1 work in python shell. The magic line appears to be "from pgu import gui"

Re: [pygame] Select a File...

2007-07-31 Thread Ian Mallett
"import pgu" works. I'll look into example functionality.

Re: [pygame] Select a File...

2007-07-31 Thread René Dudfield
Maybe try using import pgu Does the example work? On 8/1/07, Ian Mallett <[EMAIL PROTECTED]> wrote: > On 7/31/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote: > > > > That's a link to docs about Phil Hassey's PyGameUtilities (PGU) > > It's a GUI you use through pygame, but it's an external packag

Re: [pygame] Select a File...

2007-07-31 Thread Ian Mallett
On 7/31/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote: > > > That's a link to docs about Phil Hassey's PyGameUtilities (PGU) > It's a GUI you use through pygame, but it's an external package (You > have to download/install it, but you could > include it with your game/program assuming the license

Re: [pygame] Select a File...

2007-07-31 Thread Luke Paireepinart
Ian Mallett wrote: I think you want the file picker from here: http://www.imitationpickles.org/pgu/docs/gui.dialog.html Laura OK, but "gui.FileDialog()" gives Traceback (most recent call last): File "C:\dev\Python24\Projects\Pygame Programs\Music Player.py", line 19, in ?

Re: [pygame] Select a File...

2007-07-31 Thread Ian Mallett
> I think you want the file picker from here: > http://www.imitationpickles.org/pgu/docs/gui.dialog.html > > Laura OK, but "gui.FileDialog()" gives Traceback (most recent call last): File "C:\dev\Python24\Projects\Pygame Programs\Music Player.py", line 19, in ? if __name__ == "__main__": ma

Re: [pygame] Select a File...

2007-07-31 Thread Laura Creighton
In a message of Tue, 31 Jul 2007 12:52:15 PDT, "Ian Mallett" writes: >By command-line I mean something where you select the file from the conso >le >window. I once wrote a little program that does that, but only to lower >level directories. If I were to use a command-line thing, it would have >

Re: [pygame] Select a File...

2007-07-31 Thread Ian Mallett
By command-line I mean something where you select the file from the console window. I once wrote a little program that does that, but only to lower level directories. If I were to use a command-line thing, it would have to be able to access top-directory files. I don't know how to do that. I th

Re: [pygame] Select a File...

2007-07-30 Thread René Dudfield
pgu has a file chooser On 7/31/07, Ian Mallett <[EMAIL PROTECTED]> wrote: > Hi, > This is more of a python question... > I'm trying to make a file opener for a loader. The trouble is, how do I > load the file? You know when you click on the "browse" link on certain > webpages, a windows explorer

Re: [pygame] Select a File...

2007-07-30 Thread Dave LeCompte (really)
"Casey Duncan" <[EMAIL PROTECTED]> wrote: > Tkinter provides such a thing, see: I was going to point out wxPython's file chooser dialog box, if that's what Ian's looking for (I'm not entirely sure, as his post also talked about a command-line tool, which doesn't make sense to me). Unfortunately,

Re: [pygame] Select a File...

2007-07-30 Thread Casey Duncan
Tkinter provides such a thing, see: http://docs.huihoo.com/tkinter/an-introduction-to-tkinter-1997/ intro08.htm For windows you could also use pythonwin, but the above should be much more portable. -Casey On Jul 30, 2007, at 1:14 PM, Ian Mallett wrote: Hi, This is more of a python quest

[pygame] Select a File...

2007-07-30 Thread Ian Mallett
Hi, This is more of a python question... I'm trying to make a file opener for a loader. The trouble is, how do I load the file? You know when you click on the "browse" link on certain webpages, a windows explorer window opens so that you can select the file from any place on your computer? That'