When you are generating your pop-up menu you can always check the length
and elispise the choices, e.g.: in OnContextMenu
for option in options:
if len(option) > mymax:
option = option[:mymax] + "..."
menu.Append(option)
Gadget/Steve
···
On 03/06/2012 4:13 AM, michael luk wrote:
Hi,
I'm using popup menu on a TaskBarIcon.
I have 10-20 menu items on this menu and some has very long text/label
string.How can I set the width of the menu so that the long text/label will
be cut and the menu items will be showed like:"longlonglonglonglong...."
"short text/label"
"longlonglonglong"
"verylongverylongveryl..."Thanks for checking.
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en