Hi Athoik,
No, I mean python doc string. Unfortunately enigma2 completely miss doc strings.
See: https://www.python.o...-is-a-docstring
This is someting I have not been doing. I saw very little evidence of this being used in Enigma2. I have usually just been adding comments.
Something like this was doing the "hex" job (the old times...).
class HexKeyBoard(VirtualKeyBoard): def __init__(self, session, title="", **kwargs): VirtualKeyBoard.__init__(self, session, title, **kwargs) self.skinName = "VirtualKeyBoard" self.keys_list = [[u"EXIT", u"1", u"2", u"3", u"4", u"5", u"6", u"7", u"8", u"9", u"0", u"BACKSPACE"], [u"OK", u"A", u"B", u"C", u"D", u"E", u"F", u"OK", u"LEFT", u"RIGHT", u"ALL", u"CLEAR"]] self.shiftkeys_list = [] self.keyImages = { "BACKSPACE": self.key_backspace, "ALL": self.key_all, "EXIT": self.key_esc, "OK": self.key_ok, "LEFT": self.key_left, "RIGHT": self.key_right, "CLEAR": self.key_clr } self.nextLang = None self.lang = None self["country"] = Label() def setHexCallback(session, hex): print "hex:", hex def hexmenu(session, service=None, *args, **kwargs): session.openWithCallback(boundFunction(setHexCallback, session), HexKeyBoard, title=_("Please enter new hex:"), text="", maxSize=20, visible_width=20) def Plugins(**kwargs): return [PluginDescriptor(name = "Test" , description = "Test", icon="plugin.png", where = [PluginDescriptor.WHERE_EXTENSIONSMENU, PluginDescriptor.WHERE_PLUGINMENU], fnc = hexmenu, needsRestart = False)]Now, i really don't know if above still works, or how easy is to get a hex input with keyboard without making custom screens.
On the other hand, an example would be nice.
The new VirtualKeyBoard could be taught to do this easily. Would you like this to be added?
I will generate some samples for you ASAP.
Keep only what they need to remember, more options means more things to remember, so get rid of duplicates.
All the duplicates have already been removed. I changed the code as soon as I read your post. I asked for feedback so I could review and use it!
What editor today doesn't properly handle unicode?
Uninstall it and use one that makes your like simpler!
Done!
I was using WIn32Pad but now also use Notepad++.
Regards,
Ian.