For completeness, it is fairly easy to create an entry which shows
instructional text that disappears when focused. See attachment. Note this
is using the python gobject introspection version of Gtk but should
translate easily to pygtk if that's what your looking for.

-Simon


On Wed, Apr 4, 2012 at 12:15 AM, Simon Feltman <[email protected]> wrote:

> Hi Clayton,
> Before embarking on a widget like this you might consider some potential
> usability pitfalls. Essentially the framing of an edit box and the lack of
> framing on static text is a well known idiom for how these widgets behave
> and what a user expects. So by sticking with what is common you
> can guarantee not to confuse your user base. I do understand the search box
> with a low contrast embedded label that disappears when text is typed has
> become popular, but it is also usually only seen in the context of a search
> or filter.
>
> If these potential problems don't bother you, there is still another issue
> which depends on the type of form the widget is contained within. For
> instance, if you have a handful of these widgets along with other widgets
> in a form. The scanning of a human eye trying to find a particular field of
> interest might not be as efficient compared to the usage of the classic
> column of
> "Label: [edit box]" with vertical alignment.
>
> -Simon
>
> On Tue, Apr 3, 2012 at 5:50 PM, Clayton Alves <[email protected]>wrote:
>
>> Hi everybody,
>>
>> I'm new to pygtk, and new to this list as well.
>> I'm trying to find a way to implement a custom Entry Widget (image
>> attached) with an embed Label inside a Rectangle area, but have no clue
>> where to start.
>> Is there a way to draw a label and a entry inside a gtk.DrawingArea ?
>> Or is it easier to draw the label and the entry widget inside a gtk.Frame
>> ?
>>
>> thanks in advance.
>>
>> ---
>> Clayton A. Alves
>>
>>
>> _______________________________________________
>> pygtk mailing list   [email protected]
>> http://www.daa.com.au/mailman/listinfo/pygtk
>> Read the PyGTK FAQ: http://faq.pygtk.org/
>>
>
>

Attachment: entry_with_instruction.py
Description: Binary data

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to