1

This is kind of a GTK question in general but I have only used pygtk so keep that in mind if it affects the answer.

I have got the hang of the basic GTK widgets, but I now have to implement something which is not available "a la carte".

Basically I am trying to create a "timeline" similar to the old Windows Movie Maker / OpenShot timeline. My timeline will be for documents however, they can be DNDd onto the timeline and rearranged to specify their order, larger documents will be "longer" on the timeline.

It's for amalgamating existing documents.

My question is: How do I even start? Am I supposed to use a drawing area? Other GTK applications seem to have bespoke widgets that nicely match the system styles and colors - drawing area seems so primitive. Do I use styles? Do I subclass existing widgets?

tl;dr help me get started creating a unique GTK widget.

Thanks

2
  • most likely subclass existing widgets... Im not sure how you would do it in pyGTK but it would be a walk in the park w wxPython Commented Aug 31, 2012 at 13:58
  • 1
    Somebody just wrote a blog post about this: erick2red.github.com/blog/2012/08/21/making-you-own-widget Commented Sep 3, 2012 at 8:41

1 Answer 1

2

Check the source of pygtkhelpers at http://packages.python.org/pygtkhelpers/index.html

There are a number of custom widgets there, and also a couple of helper functions to make creating properties and signals easy for you.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.