What is this widget?
Rick Johnson
rantingrickjohnson at gmail.com
Thu Dec 15 10:33:49 EST 2011
More information about the Python-list mailing list
Thu Dec 15 10:33:49 EST 2011
- Previous message (by thread): What is this widget?
- Next message (by thread): replacing timestamps in file [newbie]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Dec 14, 12:47 pm, Muddy Coder <cosmo_gene... at yahoo.com> wrote: > Hi Folks, > > I am trying to write letters on a photo that is opened in a canvas. So > I think I must need a widget to contain the letters I will type in. I > tried to use a Label, it worked. But, a Label covered part of the > photo underneath, so I can't use it. I saw some software did such a > thing nicely: a box popped on a photo, with dotted lines as borders, > expandable. When such a box was re-sized with a mouse, the font size > in the box also got changed. The box has no background color, so it > does not cover a rectangle area on the photo. I need such a widget, > but I don't know what is this one. I tried Text, Label, but they all > come with Window-like stuff, so they cover some photo content. Can > somebody points me a direction? Thanks! Listen Muddy, this is not first time that you've come here seeking advice with a cryptic and ambiguous post. People have been very patient and even asked you to be more explicit with your questions. I highly advise you to re-write your original post and include which GUI library you are using and any other pertinent info. My guess is that you are using Tkinter. If so, i believe the canvas has a method called "create_text" which will do what you want. To make the input easier to code, use a Tkinter Entry widget stuffed into a dialog -- tkSimpleDialog makes this, well, simple. PS: Clean up you act Muddy!
- Previous message (by thread): What is this widget?
- Next message (by thread): replacing timestamps in file [newbie]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list