Re: ANN: Python GUI development using XULRunner

2008-09-18 Thread Riccardo Galli
On 17 Set, 03:29, Todd Whiteman <[EMAIL PROTECTED]> wrote: > I've put together a tutorial that shows off how to build a GUI > application using XULRunner (same architectural components as Firefox > uses) that can be used in conjunction with the Python programming language. > > The tutorial covers h

Re: Boss wants me to program

2005-07-02 Thread Riccardo Galli
x,menubar,...). It's hard to find googling so I let you know it here. curses-extra is its name http://www.sideralis.net/index.php?action=4&pjid=20 Bye, Riccardo -- Riccardo Galli Sideralis Programs http://www.sideralis.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there something similar to ?: operator (C/C++) in Python?

2005-06-24 Thread Riccardo Galli
e1 must _always_ have a true value (so not None,0,'' and so on), but often you can handle this. Bye, Riccardo -- Riccardo Galli Sideralis Programs http://www.sideralis.net -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP ? os.listdir enhancement

2005-06-23 Thread Riccardo Galli
nd if we want to use our special join function we can do it simply. e.g def func(dir,join=False): return (join and join(dir,x) or x for x in os.listdir(dir)) os.listdir is actually supposed not to be a generator, like you suggested. Are there known future changes ? Bye, Riccardo -- Riccardo

Re: User interfaces in console (dialog like)

2005-06-23 Thread Riccardo Galli
t; -ng It doesn't depend on the language. There aren't truely portable graphic interface libraries, which show more than a coloured rectangle. For *nix, there is also curses-extra, which offers various widgets (textview,combobox,radio and checkbuttons and so on). http://www.sideralis.

Re: PEP ? os.listdir enhancement

2005-06-23 Thread Riccardo Galli
ctions. Whether the > results are absolute or relative should depend on the initial argument to > os.listdir. > > Daniel I got the point, and you're right. I didn't though about that and 'abs' as keyword becomes nonsense. Needing a more general kewyword, as point

Re: PEP ? os.listdir enhancement

2005-06-23 Thread Riccardo Galli
On Thu, 23 Jun 2005 12:56:08 +0300, Konstantin Veretennicov wrote: > On 6/22/05, Riccardo Galli <[EMAIL PROTECTED]> wrote: > >> I propose to add an 'abs' keyword which would make os.listdir return the >> absolute path of files instead of a relative path. >

Re: PEP ? os.listdir enhancement

2005-06-23 Thread Riccardo Galli
, as the ones in the first post? -- Riccardo Galli Sideralis Programs http://www.sideralis.net -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP ? os.listdir enhancement

2005-06-23 Thread Riccardo Galli
, or if I'm wrong. Thank you, Riccardo -- Riccardo Galli Sideralis Programs http://www.sideralis.net -- http://mail.python.org/mailman/listinfo/python-list

PEP ? os.listdir enhancement

2005-06-22 Thread Riccardo Galli
sable_ list comprehension What do you think about this ? Thanks for reading, Riccardo -- Riccardo Galli Sideralis Programs http://www.sideralis.net -- http://mail.python.org/mailman/listinfo/python-list

Re: dynamic

2005-06-17 Thread Riccardo Galli
On Wed, 15 Jun 2005 11:50:27 +0200, Riccardo Galli wrote: Hi. Thanks to all who answered. Scott David posted a solution (clever, scott) which was what I asked for, but I noticed some oddness while using it (about __init__). I also understood that this way should be avoided. I ended up using a

Re: dynamic

2005-06-15 Thread Riccardo Galli
me interface. I then have a single class which add functionality to all the n classes, using their interface. The only way I see to make this single class inherith from the choosed nx class is this one. If there is a better approach, I can implement it. Thank you for the answer, Riccardo -- R

__new__ and dynamic inheriting

2005-06-15 Thread Riccardo Galli
*args,*kwds) Can I do it? How ? If it is possible, I'm pretty sure it involves using __new__ on Foo, but I can't figure out how to make it works. Any help is appreciated. Thank you, Riccardo -- Riccardo Galli Sideralis Programs http://www.sideralis.net -- http://mail.python.org/mailman/listinfo/python-list

dynamic

2005-06-15 Thread Riccardo Galli
*args,*kwds) Can I do it? How ? If it is possible, I'm pretty sure it involves using __new__ on Foo, but I can't figure out how to make it works. Any help is appreciated. Thank you, Riccardo -- Riccardo Galli Sideralis Programs http://www.sideralis.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Fast text display?

2005-06-08 Thread Riccardo Galli
g tkinter doesn't need downloading and installing only in Windows. In *nix is not so common to have tcl/tk installed (and probably in Mac too) GUI cross platform need external support, in a OS or in another. Bye, Riccardo -- Riccardo Galli Sideralis Programs http://www.sideralis.net -- http://mail.python.org/mailman/listinfo/python-list