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
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
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
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
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?
I'm going to try using wxPython because the demo seems to be precisely what
I want.
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
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
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
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
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
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
"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
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
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
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
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
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
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
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
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"
Tutorial 1 work in python shell. The magic line appears to be "from pgu
import gui"
"import pgu" works. I'll look into example functionality.
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
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
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 ?
> 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
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
>
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
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
"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,
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
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'
33 matches
Mail list logo