[Pythonmac-SIG] [Bug] control.GetControlTitle()

Steven D. Majewski sdm7g@virginia.edu
Fri, 5 Mar 1999 16:12:40 -0500 (EST)


Just ran into this.

control.SetControlTitle('name') works ok, but
control.GetControlTitle() gives the error:

 TypeError: function requires exactly 1 argument; 0 given

and in fact, the doc says it's the same as SetControlTitle:

>>> control.GetControlTitle.__doc__
'(Str255 title) -> None'


and calling it with an arg returns None, so it's non-functional. 


[ BTW: Tried the SetDialogItem trick with a real control and got
  mixed results -- the old control seems to persist when DialogDraw
  is called, even though GetDialogItem returns the new control. ]


---|  Steven D. Majewski   (804-982-0831)  <sdm7g@Virginia.EDU>  |---
---|  Department of Molecular Physiology and Biological Physics  |---
---|  University of Virginia             Health Sciences Center  |---
---|  P.O. Box 10011            Charlottesville, VA  22906-0011  |---

    Caldera Open Linux: "Powerful and easy to use!" -- Microsoft(*)
     (*) <http://www.pathfinder.com/fortune/1999/03/01/mic.html>