From: Krisztian Kepes [mailto:Kepes.Krisztian@peto.hu]
Sent: Wednesday, June 25, 2003 2:55 AM
To: wxPython-users@lists.wxwindows.org
Subject: [wxPython-users] wx and Win + get html pageHi !
1.)
Have the wxPython an Color Table to I can
get the actual Windows Colors ?Just like Delphi:
Form.Color:=clBtnFace
Self.Color:=clWindow
# Assuming self is a wxWindow derived object
self.SetBackgroundColour( somebtn.GetBackgroundColour() )
Ok, it is not os independ code, but I want to colorize my app
like Windows.2.)
How I get a html page from internet ?
This is an pseudo code:
myhttp=HTTP()
myhttp.server="anyaddress.com"
htmlsource=myhttp.get("index.html","asstring")
myhttp=None # destroy ?
print htmlsource
..
I got this code straight from the urllib2 module:
import urllib2
# set up authentication info
authinfo = urllib2.HTTPBasicAuthHandler()
authinfo.add_password('realm', 'host', 'username', 'password')
proxy_support = urllib2.ProxyHandler({"http" : "http://ahad-haam:3128"})
# build a new opener that adds authentication and caching FTP handlers
opener = urllib2.build_opener(proxy_support, authinfo,
urllib2.CacheFTPHandler)
# install it
urllib2.install_opener(opener)
f = urllib2.urlopen('http://www.python.org/')
ยทยทยท
-----Original Message-----
Thanx:
KK---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwindows.org