December 08, 2003
winGuiAuto.py

Oh, bugger, I'd better get winGuiAuto.py cleaned up and ready for release, hadn't I? ;-)

I need to:

  • Finish the docstrings.
  • Add list box support.
  • Write some simple docs and examples.
  • Build an installer script.

Oh, and register it on PyPI. And that will be version 1.0 done.

I'm already thinking of a version 2. Version 1 is a bit old-school, really. There's plenty of passing hwnds around going on, and I don't want that. I'd like to make version 2 object oriented. I'm having one major problem working out how this would work, though.

Clearly, there will be a Window class, and creating its instances will be created in much the same way as you'd currently get a hwnd using the findTopWindow() function. Then you'd ask this Window instance for its controls. The problem is that I'd expect the Control class to be abstract, and to have concrete classes like Button, ComboBox, EditBox and so on. These classes would have only the behaviours applicable to the control. But I don't know how to find out which of these classes to use for a given control - or even if it's possible in principle to make that decision.

Ah, bugger it. I'd better concentrate on finishing version 1 before I get too carried away...

Update: Firstly: a somewhat updated version of winGuiAuto.py.

Secondly, I gather that in order to work out what kind of control I have the Window Style might come in handy. I'll look into it. Thanks to "Lucky" Campbell for this hint. ;-)

Posted to Python by Simon Brunning at December 08, 2003 12:58 PM
Comments
Post a comment
Name:


Email Address:


URL:



Comments:


Remember info?