maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Help Needed]: Python-Suds and QTextBrowser (https://talk.maemo.org/showthread.php?t=43438)

EIPI 2010-02-05 02:46

[Help Needed]: Python-Suds and QTextBrowser
 
I have a 2 questions, one related to Python and the other related to QT:

1. In scratchbox, I am using the python-suds package from extras-devel in my python code to access a WSDL service. On my N900, I enabled extras-devel, and from the CLI tried "apt-get install python-suds", which did not find that package. From here, it appears the armel package is there. What am I doing wrong?

2. I am using a QTextBrowser box in the GUI to display some information. How do I specify a HTML link in the QTextBrowser object? For instance, I am setting the text within this object as follows:

Code:

ui.resultsBrowser.setText('Status for %s %s\n\
From:        %s    %s\n\
To:        %s    %s\n\
Current Status:    %s\n\
Data courtesy of: %s'\
 % (A, B, C, D, E, F, G, H))

I would like 'H' above to be a HTML link... any ideas how this can be done?

EIPI 2010-02-05 03:19

Re: [Help Needed]: Python-Suds and QTextBrowser
 
I answered my own question for #2:

Code:

ui.resultsBrowser.setText('Status for %s %s\n\
From:        %s    %s\n\
To:        %s    %s\n\
Current Status:    %s\n\
Data courtesy of:<a href="http://www.url.com">URL</a>\
 % (A, B, C, D, E, F, G))

Still not able to get python-suds on the N900 though.

pelago 2010-02-05 11:22

Re: [Help Needed]: Python-Suds and QTextBrowser
 
Did you apt-get update after adding the extras-devel repository and before trying to apt-get python-suds?

EIPI 2010-02-05 13:59

Re: [Help Needed]: Python-Suds and QTextBrowser
 
Quote:

Originally Posted by pelago (Post 511654)
Did you apt-get update after adding the extras-devel repository and before trying to apt-get python-suds?

Yes, this was the problem. I did not apt-get update before attempting the install of suds. Thank you very much!


All times are GMT. The time now is 10:01.

vBulletin® Version 3.8.8