XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Plugin/Script (Python) Development

Plugin/Script (Python) Development Developers forum for XBMC Python Plugins/Scripts. Scripters/coders only!
Not for posting feature requests, bugs, or end-user support requests!

Reply
 
Thread Tools Search this Thread Display Modes
Old 2004-03-26, 07:31   #1
madtw
Senior Member
 
Join Date: Mar 2004
Posts: 174
madtw is on a distinguished road
Default

can anyone tell me if the text entry widget is exposed via the xbmcgui module in python? *i took a look at the python.txt file mentioned in an earlier message but didn't see anything about it in there. *if you're wondering which widget i'm talking about, it is the location search widget used in the weather settings screen.

this would be very handy to have available. *i'd like to use something like it to be able configure the hostname, database, user, password for accessing the mythtv database. *also, it would be handy in a schedule search screen for searching the mythtv television schedule or recorded shows.

if it isn't possible, then i think i might try to write a custom window in python to be able to enter text.
madtw is offline   Reply With Quote
Old 2004-03-26, 09:39   #2
alx5962
Senior Member
 
Join Date: Jan 2004
Posts: 174
alx5962 is on a distinguished road
Default

i requested it, so i hope darkie will hear me

but for now it's not included
alx5962 is offline   Reply With Quote
Old 2004-03-26, 10:27   #3
darkie
Team-XBMC Developer
 
Join Date: Sep 2003
Posts: 530
darkie is on a distinguished road
Default

alx5962, i heard you
and keyboard support in python will be added. i'll try to do it today.



__________________
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.


darkie is offline   Reply With Quote
Old 2004-03-26, 11:02   #4
alx5962
Senior Member
 
Join Date: Jan 2004
Posts: 174
alx5962 is on a distinguished road
Default

Quote:
Originally Posted by (darkie @ mar. 26 2004,08:27)
alx5962, i heard you
and keyboard support in python will be added. i'll try to do it today.
darkie you are my idol :lol:
alx5962 is offline   Reply With Quote
Old 2004-03-26, 11:13   #5
dop
Junior Member
 
Join Date: Mar 2004
Posts: 7
dop is on a distinguished road
Default

as we are currently talking about features in this thread, will there be a 'list' control? there is already a select dialog but i wanted to add a list to my normal window.

i could of course create one from scratch, but if it's on the todo list.. .
dop is offline   Reply With Quote
Old 2004-03-26, 22:01   #6
darkie
Team-XBMC Developer
 
Join Date: Sep 2003
Posts: 530
darkie is on a distinguished road
Default

just added your keyboard to cvs

example of how to use it
Quote:
import xbmc

keyboard = xbmc.keyboard('name')
keyboard.domodal()

if (keyboard.isconfirmed())
*print keyboard.gettext()
else
*print 'user canceled'
__________________
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.


darkie is offline   Reply With Quote
Old 2004-03-26, 23:03   #7
alx5962
Senior Member
 
Join Date: Jan 2004
Posts: 174
alx5962 is on a distinguished road
Default

thank you
now i expect to see a cvs release very soon !
alx5962 is offline   Reply With Quote
Old 2004-04-06, 18:19   #8
darkie
Team-XBMC Developer
 
Join Date: Sep 2003
Posts: 530
darkie is on a distinguished road
Default

Quote:
as we are currently talking about features in this thread, will there be a 'list' control? there is already a select dialog but i wanted to add a list to my normal window.

i could of course create one from scratch, but if it's on the todo list.. .
just added one to cvs for you
check windowexample.py on how you can use it
__________________
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.


darkie is offline   Reply With Quote
Old 2004-04-07, 05:02   #9
nlemoz
Junior Member
 
Join Date: Apr 2004
Posts: 11
nlemoz is on a distinguished road
Default

seeing as easter seems to have come early over here, a function like:

getlabellength(font,string)

that would return the length of a text label using this font with this text. alternately, a 'text box' that automatically split lines at a certain (pixel) width (but only at specific characters eg spaces) and returned the total lines used would be good.

would make life much easier writing for multiple resolutions and laying out text.
nlemoz is offline   Reply With Quote
Old 2004-04-07, 05:03   #10
nlemoz
Junior Member
 
Join Date: Apr 2004
Posts: 11
nlemoz is on a distinguished road
Default

seeing as easter seems to have come early over here, a function like:

getlabellength(font,string)

that would return the length of a text label using this font with this text. alternately, a 'text box' that automatically split lines at a certain (pixel) width (but only at specific characters eg spaces) and returned the total lines used would be good.

would make life much easier writing for multiple resolutions and laying out text.
nlemoz is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XBMC Widget for Mac OS X users pike XBMC General Discussion 22 2009-08-04 21:11
Disable text for Hearing Impaired in text-based subtitles Bad_Karma XBMC Feature Suggestions 2 2006-04-26 15:54
XBMC Widget usability for Subscription sites vinny75 XBMC for Xbox Specific Support 1 2006-04-18 23:38
remote control text entry improvement pommes XBMC Feature Suggestions 0 2004-05-14 12:48


All times are GMT +2. The time now is 12:55.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project