[Tkinter-discuss] Fwd: [ANN] Ttk wrapper 0.0.9

Igor Novikov igor.e.novikov at gmail.com
Sun Jul 13 23:05:09 CEST 2008


On Sun, Jul 13, 2008 at 11:06 PM, Guilherme Polo <ggpolo at gmail.com> wrote:

> On Sun, Jul 13, 2008 at 4:39 PM, Igor Novikov <igor.e.novikov at gmail.com>
> wrote:
> > Hi,
> >
> > Recently I have found your message regarding ttk package which is a part
> of
> > your GSoC 2008 project:
> >
> > http://mail.python.org/pipermail/tkinter-discuss/2008-June/001439.html
> >
> > It is curiously enough, but our sK1 project has used similar package
> since
> > 2006 year (it was Tile wrapper initially). I think our code base could be
> > useful for your GSoC project, because it contains a lot of fixes and
> > workarounds.
>
> I'm taking a look at it, Igor, I guess you are referring to Ttk.py at
> sK1/src/app/UI, correct ?


on this moment the package is refactored to sK1/src/app/UI/lib-ttk to be
generic for all packages like Tkinter.


> Initially I see it is missing Notebook, Treeview and all the theming
> management, I guess you just wrapped the bits useful for your project.


Yes, you are right. Our goal is providing custom Ttk package for our project
but not for conventional usage. So our code could  be useful as tips, no
more.


>
> I'm curios why you prefixed most classes with a "T", except the
> Labelframe one. Other thing I noticed is that the class TButton has
> way more methods than those supported by a ttk Button.


We don't use  ttk::labelframe due to some ttk implementation bugs (may be
they have been fixed). In Ttk.py you have found regular tk::labelframe.
"T" prefix is used to avoid clashes with Tkinter classes. If you migrate
from Tkinter to Ttk and your project is bigger than regular 'hello world'
such clashes could be a serious issue.

Also, did you happen to give a try to my wrapper and found some
> different behavior than yours ?


Sorry, I cannot using your package because it isn't compatible with sK1 code
base. Regarding behavior we are overloading some ttk-related tcl scripts on
runtime resolving some ttk and tk issues (sK1/src/app/tcl).

Our sK1 UI uses pixmap-based themes only because existing Tile/ttk themes
are not useful for complex interface. For example, as for Ubuntulooks theme:

http://ru.wikipedia.org/wiki/SK1

sorry it is a Russian Wikipedia page, English variant is under construction.


>
>
> >
> > Sincerely,
> >
>
> I appreciate your interest,
>
>
>
>
> --
> -- Guilherme H. Polo Goncalves
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20080714/48699d6b/attachment.htm>


More information about the Tkinter-discuss mailing list