How to display keyboard directly in IP address mode ?
#1
Hi all,

I'm writing my first addon in python and use xbmc.keyboard to get an IP address from user.
It works actually but I would like my keyboard to directly display the [/code] "IP address" specific mode...

My (working) code is

Code:
mykeyb = xbmc.Keyboard( self.serverip, __language__(51105), False )
mykeyb.doModal()
if ( mykeyb.isConfirmed() ):
    if mykeyb.getText():
         self.newserverip = mykeyb.getText()

thank you
Reply
#2
http://mirrors.xbmc.org/docs/python-docs...og-numeric
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
Yes, you have to use:
Code:
ip_address = xbmc.Dialog().numeric(3, 'Please enter IP Address')
This will open an numeric dialog with the "IP-Address" input type.
My GitHub. My Add-ons:
Image
Reply
#4
Thanks to both of you. I had a look at the ref doc but at the wrong place...

Here is the code which finally works for me :

Code:
keyboard = xbmcgui.Dialog()
self.newserverip = keyboard.numeric(3, __language__(51105), self.serverip);

cheers

Grizzli
Reply

Logout Mark Read Team Forum Stats Members Help
How to display keyboard directly in IP address mode ?0