- more tweaks

- have discovered some problems but not yet discovered solutions...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1998-08-27 00:01:17 +00:00
parent 5104949d8a
commit 21f4bf4568
5 changed files with 82 additions and 560 deletions

View File

@@ -369,10 +369,11 @@ class AppFrame(wxFrame):
def WriteText(self, str):
self.log.WriteText(str)
w, h = self.log.GetClientSize()
numLines = h/self.charHeight
x, y = self.log.PositionToXY(self.log.GetLastPosition())
self.log.ShowPosition(self.log.XYToPosition(x, y-numLines+1))
if wxPlatform == '__WXMSW__':
w, h = self.log.GetClientSize()
numLines = h/self.charHeight
x, y = self.log.PositionToXY(self.log.GetLastPosition())
self.log.ShowPosition(self.log.XYToPosition(x, y-numLines+1))
def OnFileExit(self, event):
self.Close()
@@ -506,6 +507,11 @@ class MyApp(wxApp):
def main():
app = MyApp(0)
import wxPython.gdi
reload(wxPython.gdi)
print wxPython.gdi.wxBLUE
print wxPython.gdi.wxBLUE.this
app.MainLoop()
@@ -513,6 +519,20 @@ def t():
import pdb
pdb.run('main()')
# for focused testing...
def t2():
class T2App(wxApp):
def OnInit(self):
frame = TestLayoutConstraints(NULL)
frame.Show(true)
self.SetTopWindow(frame)
app = T2App(0)
app.MainLoop()
if __name__ == '__main__':
main()
@@ -520,6 +540,10 @@ if __name__ == '__main__':
#----------------------------------------------------------------------------
#
# $Log$
# Revision 1.3 1998/08/27 00:01:17 RD
# - more tweaks
# - have discovered some problems but not yet discovered solutions...
#
# Revision 1.2 1998/08/22 19:51:18 RD
# some tweaks for wxGTK
#