a module to use Tkinter syntax with wxPython widgets ?

Hi,

I am using wxPython under Linux and windows and I find this package

very powerfull.

Since I worked for a long time with python/Tkinter, I found that the syntax

used by the Tkinter package is more powerfull and efficient. May be this

is not the reality but this my point of view.

I noted also that the syntax and structure of object was a point for a discussion

about comparison between Tkinter and wxPython.

Then, I writed a “wrapper” in order to use wxPython or Tkinter widgets

without changing any line of the source. So, the example code :

···

root=Tk()

f = Frame(root)

def handler():

print 'Hi everybody'

b=Button(f, text=‘button 1’, command=handler)

b.pack(side=‘left’, pady=10)

v=IntVer()

v.set(1)

b=Checkbutton(f, text=‘button 1’, variable=v)

b.pack(side=‘left’, pady=10)

f.pack(side=‘top’, fill=x)

root.mainloop()


works even with wxPython or Tkinter widgets.

My question is :

Is somebody interested to use this package ? Is the wxPython team is

interested to insert it in the wxPython distribution ?

Your answers will tell me if I send my package to the free software community…

Thanks.

Olivier Ravard

[...]
Then, I writed a "wrapper" in order to use wxPython or Tkinter widgets
without changing any line of the source. So, the example code :
[...]
My question is :

Is somebody interested to use this package ? Is the wxPython team is
interested to insert it in the wxPython distribution ?

I think that depends on how much of wxpython it wraps (among other things)

Your answers will tell me if I send my package to the free software
community...

You could post the source code somehere... I'm ready to take a look... :smiley:

···

On 26 May 2004 14:58:38 +0200, Olivier Ravard <olivier.ravard@novagrid.com> wrote:

Thanks.

Olivier Ravard

--
Peter Damoc
Hacker Wannabe

I think for sure there'll be a lot of intrest for
this. An earlier attempt is the dead(?) project
http://anygui.sourceforge.net/ Maybe it's a good idea
to launch it first on sourceforge and than see which
direction it takes.
Stani

http://spe.pycs.net

--- Olivier Ravard <olivier.ravard@novagrid.com>
wrote:

···

Hi,

I am using wxPython under Linux and windows and I
find this package
very powerfull.

Since I worked for a long time with python/Tkinter,
I found that the
syntax
used by the Tkinter package is more powerfull and
efficient. May be this
is not the reality but this my point of view.

I noted also that the syntax and structure of object
was a point for a
discussion
about comparison between Tkinter and wxPython.

Then, I writed a "wrapper" in order to use wxPython
or Tkinter widgets
without changing any line of the source. So, the
example code :

------------------------------------------------------------

root=Tk()
f = Frame(root)

def handler():
    print 'Hi everybody'
b=Button(f, text='button 1', command=handler)
b.pack(side='left', pady=10)

v=IntVer()
v.set(1)
b=Checkbutton(f, text='button 1', variable=v)
b.pack(side='left', pady=10)

f.pack(side='top', fill=x)
root.mainloop()

------------------------------------------------------------

works even with wxPython or Tkinter widgets.

My question is :

Is somebody interested to use this package ? Is the
wxPython team is
interested to insert it in the wxPython distribution
?

Your answers will tell me if I send my package to
the free software
community...

Thanks.

Olivier Ravard

__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

*
> [...]
> Then, I writed a "wrapper" in order to use wxPython or Tkinter widgets
> without changing any line of the source. So, the example code :
> [...]
> My question is :
>
> Is somebody interested to use this package ? Is the wxPython team is
> interested to insert it in the wxPython distribution ?
I think that depends on how much of wxpython it wraps (among other things)
>
> Your answers will tell me if I send my package to the free software
> community...
You could post the source code somehere... I'm ready to take a look... :D*

I will post it tomorow after inserting some comments …

*> Thanks.
>
> Olivier Ravard
>
>*

Olivier Ravard

petitlogo.gif

rule-blue-right.png

transparent.png

rule-blue-center.png

rule-blue-left.png

···

Le mer 26/05/2004 à 16:05, Peter Damoc a écrit :

On 26 May 2004 14:58:38 +0200, Olivier Ravard olivier.ravard@novagrid.com wrote:


NovaGrid S.A.

olivier.ravard@novagrid.com

WEB : http://www.novagrid.com

TEL/FAX : 02 23 23 62 32

*
> [...]
> Then, I writed a "wrapper" in order to use wxPython or Tkinter widgets
> without changing any line of the source. So, the example code :
> [...]
> My question is :
>
> Is somebody interested to use this package ? Is the wxPython team is
> interested to insert it in the wxPython distribution ?
I think that depends on how much of wxpython it wraps (among other things)
>
> Your answers will tell me if I send my package to the free software
> community...
You could post the source code somehere... I'm ready to take a look... :D*

Here is the very first revision. I send a file for testing all classes.

Tell me what do you think about this.

*> Thanks.
>
> Olivier Ravard
>
>*

Olivier Ravard

petitlogo.gif

rule-blue-right.png

transparent.png

rule-blue-center.png

rule-blue-left.png

novawidget.py (24 KB)

test_novaw.py (2.5 KB)

···

Le mer 26/05/2004 à 16:05, Peter Damoc a écrit :

On 26 May 2004 14:58:38 +0200, Olivier Ravard olivier.ravard@novagrid.com wrote:


NovaGrid S.A.

olivier.ravard@novagrid.com

WEB : http://www.novagrid.com

TEL/FAX : 02 23 23 62 32

well... actualy I meant put the code somewhere on the net and provide a link for this mailing list.
Anyway... I took a look at the code... I never was a fan of Tk so... you'll need someone else for a more unbiased perspective :smiley:

···

On 27 May 2004 11:23:11 +0200, Olivier Ravard <olivier.ravard@novagrid.com> wrote:

Le mer 26/05/2004 à 16:05, Peter Damoc a écrit :

You could post the source code somehere... I'm ready to take a look... :smiley:

Here is the very first revision. I send a file for testing all classes.
Tell me what do you think about this.

Olivier Ravard

--
Peter Damoc
Hacker Wannabe