Active Topics

 


Reply
Thread Tools
EIPI's Avatar
Posts: 794 | Thanked: 784 times | Joined on Sep 2007 @ /Canada/Ontario/GTA
#1
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?
__________________
Mobile Tablets Blog
Follow me on
Twitter

 
EIPI's Avatar
Posts: 794 | Thanked: 784 times | Joined on Sep 2007 @ /Canada/Ontario/GTA
#2
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.
__________________
Mobile Tablets Blog
Follow me on
Twitter

 
pelago's Avatar
Posts: 2,121 | Thanked: 1,540 times | Joined on Mar 2008 @ Oxford, UK
#3
Did you apt-get update after adding the extras-devel repository and before trying to apt-get python-suds?
 

The Following User Says Thank You to pelago For This Useful Post:
EIPI's Avatar
Posts: 794 | Thanked: 784 times | Joined on Sep 2007 @ /Canada/Ontario/GTA
#4
Originally Posted by pelago View Post
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!
__________________
Mobile Tablets Blog
Follow me on
Twitter

 
Reply

Tags
python, python-suds, qtextbrowser


 
Forum Jump


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