Edit control and Python?
#1
Question 
Hi,

I searched the forum and the wiki, but couldn't find a straight forward answer regarding the use of edit control with Python.
If I understand correctly there's no way to reference the control from within Python, I get error: "unknown control type for python" when I execute: self.getControl(CONTROL_TW).
Here's a snippet:
<control type="edit" id="1008">
<description>Tw text box</description>
<posx>20</posx>
<posy>125</posy>
<width>460</width>
<height>30</height>
<font>font14</font>
<textcolor>FFFFFFFF</textcolor>
<pulseonselect></pulseonselect>
<onup></onup>
<ondown>50</ondown>
<onleft></onleft>
<onright>1009</onright>
</control>

However, I read about Kai offering this functionality and see I see the use of direct edit all over the place when I use the different skins.

Is there any way to implement this functionality? Allowing the member to edit the text directly without a keyboard?

Thanks.
Reply
#2
Python currently doesn't have access to the edit control. A patch would be most welcome.

EDIT: That said, you should get a click message back to python I should think? If not, that's where I'd concentrate on the patch (you'd have to send the fact that it was updated and the updated text to python).

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Edit control and Python?0