how to make the output Window(Home).Property() as integer
#1
I am trying to show an Arabic date in my addon and the date come with .0 at end of year, how can i convert it as integer with Window(Home).Property() because i tried in python but didn't work:
Quote:this is in my script:
yeararabic = str(HijriDate.hijri_year_from_date(date.today()))
WINDOW = xbmcgui.Window(10000) # That window ID is for the home window
WINDOW.setProperty("yeararabic", yeararabic)
thanks for all
Reply
#2
str(int(2018.0)) will return '2018'
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
how to make the output Window(Home).Property() as integer0