I'm greateful for more detailed information and better code.
I learned a lot and I use it.
Thanks,
--
http://mail.python.org/mailman/listinfo/python-list
Great, It's a just good solution. I use it.
Thanks,
--
http://mail.python.org/mailman/listinfo/python-list
Encoding is utf-8.
I use "screen length" means as that; that of ascii character is 1, and that of
character having double width than ascii character is 2.
It's not bytes, but drawing width.
As you say, it depends font. I'll be considering carefully.
--
http://mail.python.org/mailman/listinfo/pyth
Hello,
Under platform that has fixed pitch font,
I want to get a "screen" length of a multibyte string
--- sample ---
s1 = u"abcdef"
s2 = u"あいう" # It has same "screen" length as s1's.
print len(s1) # Got 6
print len(s2) # Got 3, but I want get 6.
--
Abobe can get a "character" leng
Dear Diez,
Thanks ... I've already read the doc :)
In my case, I would like to copy an item from
a popup menu to another popup menu ... Of course,
I can create a new item with same name, same pixmap
and so on but I don't know how to execute the same code
when my new item is activated ... And I do
Dear all,
For a particuliar case, I need to copy all the items of
an existing menu (including the separators and sub-menus)
in a new empty one ... Does someone knows how to do that ?
I've tried :
item = menu_orig.findItem(item_id)
menu_new.insertItem(item, item_id)
but it fails with :
TypeError: a