You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Normally in Delphi I would do Memo1.VScrollBar.Value := self.Memo1.VScrollBar.Max; to scroll to the bottom of a Memo. I tried doing this in Python, but it doesn't work.
Here's a code example in Python:
self.Memo1=Memo(self)
self.Memo1.Parent=selfself.Memo1.Align="Client"foriinrange(1000):
self.Memo1.Lines.Add("This is a test: "+str(i))
self.Memo1.VScrollBar.Value=self.Memo1.VScrollBar.Max
The error is: AttributeError: 'NoneType' object has no attribute 'Max'
Or am I maybe using it wrong in Python?
The text was updated successfully, but these errors were encountered:
Normally in
Delphi
I would doMemo1.VScrollBar.Value := self.Memo1.VScrollBar.Max;
to scroll to the bottom of aMemo
. I tried doing this inPython
, but it doesn't work.Here's a code example in Python:
The error is:
AttributeError: 'NoneType' object has no attribute 'Max'
Or am I maybe using it wrong in Python?
The text was updated successfully, but these errors were encountered: