OO on python real life tutorial?
Hello, I coded my +10k lines app using Perl/Tk. It is something like a hotel software manager, it has a bunch of windows to manage the arrivals, bills etc etc. I want to port this on Python/WxPython but I'd like to get benefit of python, not just doing a row by row raw porting. My problem is that I cannot figure out how OO could be useful in my case. Is there a OO tutorial out there to help me? Thanks, Filippo -- http://mail.python.org/mailman/listinfo/python-list
Re: OO on python real life tutorial?
thanks Fredrik and Claudio, probably structured coding paradigm is what I need. Claudio, could you explain better your sentence below? Claudio Grondi ha scritto: > Python/Tk for it in order to avoid programming in wxPython if not really > necessary (wxPython has its strengths with growing project sizes, but > yours is still far below the threshold). I want to switch to wxpython because I don't like Tk too much. It is difficult sometimes to have full control of the widgets (i.e. focus sequence). Why do you think wxwidget is not suitable for low-medium size projects? Could you give me some practical examples of this? Thanks and best regards, Filippo -- http://mail.python.org/mailman/listinfo/python-list
Re: OO on python real life tutorial?
Fredrik Lundh ha scritto: > How many do you need ? ;-) (snip) thanks Fredrik, I know there are plenty of tutorials and manuals. I know what classes, inheritance and polymorphism are. My problem is that I cannot figure out how they can help me in my practical problem (my software). The only things I can imagine is to create some objects like "customer" but all I can do is to try to force the object to act like my "structured way of thinking" the problems. I will read your links, however. Thanks, Filippo -- http://mail.python.org/mailman/listinfo/python-list
Re: OO on python real life tutorial?
Diez B. Roggisch ha scritto: > I've been doing an online hotel reservation system, btw, and I assure > you: OO was very helpful, even in its crappy PHP incarnation. thanks Diez, I'll keep trying OO paradigm. Probably the advantages will be clearer to me porting to python my app. Best regards, Filippo -- http://mail.python.org/mailman/listinfo/python-list
Re: OO on python real life tutorial?
Claudio Grondi ha scritto: (megasnip) I caught your point of view. I start reading a book on wxpython to understand if it can help to solve my problems. At the same time I will port my program to Python/Tk in order to have a faster first beta release. Thanks for your explanation. Filippo -- http://mail.python.org/mailman/listinfo/python-list
http://mail.python.org/pipermail/python-list/2006-January/320434.html
Hello,
if after your command:
ie.Document.login_form.submit()
I write:
doc = ie.Document
s = doc.documentElement.outerHTML
print s
I can see the HTML of the document before the submit
command, but I would like to see the HTML of the page
after the submit command: do you know how to solve
this problem?
Cheers.
form:
http://mail.python.org/pipermail/python-list/2006-January/320434.html
# Quick and dirty script example
from win32com.client import DispatchEx
import time
def wait(ie):
while ie.Busy:
time.sleep(0.1)
while ie.Document.ReadyState != 'complete':
time.sleep(0.1)
#instaniate a new ie object so you can call it's
methods and properties...etc..
ie = DispatchEx('InternetExplorer.Application')
# You need to make it Visible
ie.Visible = 1
# Navigate to the page
ie.Navigate('mail.yahoo.com')
wait(ie) # important to wait for the doc to load
# Enter User info and submit the form since it uses
submit # If the button had a name attribute # You
could also use
ie.Document.login_form.buttonName.Click
# ieObject.Document.FormName.TexboxName.value ="??"
ie.Document.login_form.username.value="MyName"
ie.Document.login_form.passwd.value="Mypasswd"
ie.Document.login_form.submit()
Enjoy
Rob M
http://pamie.sourceforge.net
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
http://mail.python.org/mailman/listinfo/python-list
send keys in windows
I am trying to learn how send keys and mouse click to a background process in windows Where can I find complete documentation and examples ? With Google I looked for books and internet link but I didn't find much. thank -- Filippo -- https://mail.python.org/mailman/listinfo/python-list
