2017-03-23, 13:28
I'm sorry for such a noob question, but how do I install PyXBMCt in Kodi 17? I can't seem to find it in the Kodi official repository.
(2017-03-23, 13:28)anpaza Wrote: I'm sorry for such a noob question, but how do I install PyXBMCt in Kodi 17? I can't seem to find it in the Kodi official repository.
def push_main_test_button(self):
log("Main test button pushed")
wid = xbmcgui.getCurrentWindowDialogId()
log("windialog id = %s" % str(wid))
self.close()
xbmc.executebuiltin('ActivateWindow(fullscreenvideo)')
xbmc.Player().play("f:\BIU_Black_Animation.720p_large.mp4")
19:33:26.470 T:3184 DEBUG: Bluray iso utils: Main test button pushed
19:33:26.471 T:3184 DEBUG: Bluray iso utils: windialog id = 13003
19:33:26.483 T:4980 DEBUG: ------ Window Deinit () ------
19:33:26.484 T:3184 INFO: CPythonInvoker(7, C:\Users\Max Renn\AppData\Roaming\Kodi\addons\script.service.bluray_iso_utils\BIUinfo_builder.py): script successfully run
19:33:26.490 T:4980 DEBUG: Activating window ID: 12005
19:33:26.490 T:4980 DEBUG: ------ Window Deinit (MyPrograms.xml) ------
19:33:26.490 T:4980 DEBUG: ------ Window Init (VideoFullScreen.xml) ------
19:33:26.490 T:4980 DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
19:33:26.490 T:4980 DEBUG: ------ Window Deinit (VideoFullScreen.xml) ------
19:33:26.493 T:3184 WARNING: CPythonInvoker(7, C:\Users\Max Renn\AppData\Roaming\Kodi\addons\script.service.bluray_iso_utils\BIUinfo_builder.py): the python script "C:\Users\Max Renn\AppData\Roaming\Kodi\addons\script.service.bluray_iso_utils\BIUinfo_builder.py" has left several classes in memory that we couldn't clean up. The classes include: class XBMCAddon::xbmcg...
19:33:26.493 T:3184 INFO: Python script stopped
19:33:26.493 T:3184 DEBUG: Thread LanguageInvoker 3184 terminating
import xbmc
import pyxbmct
class MyDialog(pyxbmct.AddonDialogWindow):
def __init__(self):
self._monitor = xbmc.Monitor()
self._player = xbmc.Player()
def play(self, path):
self._player.play(path)
xbmc.sleep(200) # Wait for the player to start, adjust the timeout if necessary
self.close()
while self._player.isPlaying():
if self._monitor.waitForAbort(1):
raise SystemExit
self.doModal()
(2017-04-23, 11:55)Deso Wrote: How can I execute script from ./storage/downloads/script.sh on button press? I am not very good with python so can you give me some example?
Thanks in advance!
(2017-04-23, 17:32)Deso Wrote: Yes Roman, I read it. The problem is in my python knowledge not in documentation I think. I try with "self.connect(self.button, self.runShellScript)" but receive error.
Can you write it for me?
(2017-04-23, 20:48)Wimpie Wrote: Roman,
I use very much .setEnabled() & .setVisible() on the controls with PyXBMCt .
Almost all work as expected, but .setEnabled() does not work with any of my textbox controls (I can't disable/gray the textbox). It does work with the other controls.
Can you confirm that this is a bug, or that I am doing something wrong?
Thanks
(2017-04-24, 08:46)Roman_V_M Wrote:(2017-04-23, 20:48)Wimpie Wrote: I use very much .setEnabled() & .setVisible() on the controls with PyXBMCt .
Almost all work as expected, but .setEnabled() does not work with any of my textbox controls (I can't disable/gray the textbox). It does work with the other controls.
Can you confirm that this is a bug, or that I am doing something wrong?
Just for clarity: .setEnabled() & .setVisible() are provided by Kodi's xbmggui module, not by PyXBMCt. And .setEnabled() works as intended because information controls, like labels and textboxes, do not have "enabled/disabled" state.
(2017-04-24, 08:46)Roman_V_M Wrote: Users cannot interact with a textbox, they can only look at it, so enabling/disabling a textbox does not make much sense. .setEnabled() is used for interactive controls (those that require some user interaction, like buttons and such) to prevent accidental triggering those controls when it is not desirable.