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