Hi Malcom,

  Full code for these buttons available from:

http://www.wagsoft.com/CTButtonCode.zip

Run demo.py to see 3 buttons.

Buttons change appearance on mouse over and when pressed.

Provide your own image parts to make your own buttons.

Unfortunately the buttons are tied in with other code for theming my
application,
also attached.

Mick





On Thu, Nov 4, 2010 at 5:31 PM,  <pyt...@bdurham.com> wrote:
> Michael,
>
>> To see what can be done, look at my tkinter-based interface,
>> at: http://www.wagsoft.com/CorpusTool/img/main.jpg
>
> Nice! So each of your top buttons (Project, Search, Autocode, etc) is
> actually a custom widget based on a canvas containing 3 images (manually
> placed via .create_image) and then manually labeled with text via
> .create_text)? And your canvas backgroundcolors are set to the
> backgroundcolor of their parent frame? If I understand your technique,
> you place everything manually vs. using a layout manager like pack/grid?
>
> I noticed your buttons are not all the same width - do you have custom
> width centre images or is there a way to horizontally stretch an image?
> (I've looked for this capability without success).
>
> Thanks for sharing your technique and screenshot. The screenshot really
> helped me understand what you're saying.
>
> Cheers,
> Malcolm
>
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to