wxpython - copy and past of HTML codes in Python -


I am trying to get an HTML code when a user tries to copy and paste from the web browser. As such, if you copy and past a text editor from a webbrover, then only the text is copied, not the HTML code. But, if you do it in MS Word, then you can see that the layout information is protected

I am using wxPython, what is possible to get an HTML code in WxPython when a user gets the HTML file Tries to copy and paste?

Thank you,

Do you want to get the source code of a webpage?

Try this in Python: import urlib codeSrc = urllib.urlopen ('http://www.google.fr') .read () print (codeSrc Find ('google'))

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -