Posts: 336
Joined: Jul 2011
Reputation:
8
Just a quick question, but what's the easiest way to make the ok dialog window appear, been trying to figure it out but can't remember :p
Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
2012-07-31, 14:25
(This post was last modified: 2012-07-31, 14:27 by phil65.)
pressing "del" when focussing a movie for example. (not sure if it uses all built-in label controls then though)
Posts: 336
Joined: Jul 2011
Reputation:
8
That brings up the yes no dialog, which incidentely was what I thought I was trying to code - couldn't for the life of me figure out why the changes weren't making a difference :p
Posts: 672
Joined: Aug 2010
Reputation:
13
pieh
Retired Team-Kodi Member
Posts: 672
2012-07-31, 15:03
(This post was last modified: 2012-07-31, 15:04 by pieh.)
add source and manually enter path "smb://defenitely_not_working_path", confirm that you want to add even if it doesn't work - now try to access is, DialogOK will show and say it can't connect (tho 1 of 3 lines will only be used)
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first
My previous forum/trac nickname: grajen3
Posts: 336
Joined: Jul 2011
Reputation:
8
Cheers Phil, works great. Although i had to add "String4" in as well :p
Posts: 13
Joined: Jan 2017
Reputation:
0
KM5TZ
Junior Member
Posts: 13
2017-01-07, 07:51
(This post was last modified: 2017-01-07, 08:52 by KM5TZ.)
Newbie here... fumbling my way through my first kodi addon.
I have successfully implemented xbmcgui.Dialog().ok(addonname, line1, line2) in my code and works as intended but the message font is too small. The heading is fine and the 'OK' button is too but I want a much larger message font. How can I change this?
Thanks!
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
well...you can't. it's the skin that determines what font sizes to use.
Posts: 13
Joined: Jan 2017
Reputation:
0
KM5TZ
Junior Member
Posts: 13
ronie, thank you for the quick reply to my post.
I am using a raspberry pi 2 as a carputer. I am working on a service addon that monitors the information bus in my car and would like to flash up messages such as 'coolant low' when they appear. xbmcgui.Dialog does exactly what I want except it is too small to read when driving my car, I need a much larger font. Pressing the 'OK' acknowledges the message and clears the screen - just what I want.
My question is if I cannot easily change the font is there another way to accomplish this and if so (I'm sure there is) can you point me in the right direction? Basically I want to flash up a text box that is visible above everything else and be able to acknowledge/clear it.
Thank you!
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
2017-01-07, 21:25
(This post was last modified: 2017-01-07, 21:25 by ronie.)
you can change the fontsize in the skin you're using.
you'd need to edit the DialogNotification.xml file and change the fontsize of the textbox control.
Posts: 13
Joined: Jan 2017
Reputation:
0
KM5TZ
Junior Member
Posts: 13
Thanks!
This got me on the right path.... No DialogNotification.xml but there is DialogOK.xml and editing this did the trick!
Thanks again!