Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[python-api] add xbmcgui.Dialog().contextmenu() #9591

Merged
merged 2 commits into from
Apr 11, 2016

Conversation

phil65
Copy link
Contributor

@phil65 phil65 commented Apr 9, 2016

When workin with WindowXML objects, creating some sort of contextmenu is quite painful. Both me and @ronie workarounded that in some ways (by either using DialogSelect() or by using a custom script window XML)
This should allow to get rid of these workarounds.

@tamland

EDIT: renamed to contextmenu() which suits better to overall naming.

@phil65 phil65 changed the title [python-api] add xbmcgui.Dialog().context() [python-api] add xbmcgui.Dialog().contextmenu() Apr 9, 2016
@phil65 phil65 added Type: Improvement non-breaking change which improves existing functionality v17 Krypton API change: Python Component: Python labels Apr 9, 2016
{
choices.Add(i, list[i]);
}
return pDialog->ShowAndGetChoice(choices);

This comment was marked as spam.

@phil65
Copy link
Contributor Author

phil65 commented Apr 10, 2016

updated. also fixed some more typos in docs.

@ronie
Copy link
Member

ronie commented Apr 10, 2016

while testing this, i noticed there's a positioning issue (not related to this PR).

if the script xml is coded in 1080, but the script is run in a 720p skin,
the context menu isn't centered correctly.

for example, this is what happens in confluence (when using the script provided xml):
contextmenu

@phil65
Copy link
Contributor Author

phil65 commented Apr 10, 2016

yup, can confirm that.
I guess something is wrong here? https://github.com/phil65/xbmc/blob/python_context_menu/xbmc/dialogs/GUIDialogContextMenu.cpp#L685-L687

@phil65
Copy link
Contributor Author

phil65 commented Apr 10, 2016

since that bug is not related to this PR:
jenkins build this please

@phil65 phil65 merged commit 30d4ae0 into xbmc:master Apr 11, 2016
@phil65 phil65 deleted the python_context_menu branch April 29, 2016 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API change: Python Component: Python Type: Improvement non-breaking change which improves existing functionality v17 Krypton
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants