Tweaks needed to be able to build wxPython with wxGTK.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1998-12-16 22:12:47 +00:00
parent 5f4987fed4
commit 105e45b9d0
38 changed files with 4021 additions and 772 deletions

View File

@@ -4,7 +4,14 @@ import windowsc
from misc import *
from gdi import *
import wxp
import wx
def wxDLG_PNT(win, point):
return win.ConvertDialogPointToPixels(point)
def wxDLG_SZE(win, size):
return win.ConvertDialogPointToPixels(size)
class wxEvtHandlerPtr :
def __init__(self,this):
self.this = this
@@ -71,8 +78,13 @@ class wxWindowPtr(wxEvtHandlerPtr):
def GetCharWidth(self):
val = windowsc.wxWindow_GetCharWidth(self.this)
return val
def GetClientSizeTuple(self):
val = windowsc.wxWindow_GetClientSizeTuple(self.this)
return val
def GetClientSize(self):
val = windowsc.wxWindow_GetClientSize(self.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def GetConstraints(self):
val = windowsc.wxWindow_GetConstraints(self.this)
@@ -81,6 +93,7 @@ class wxWindowPtr(wxEvtHandlerPtr):
def GetFont(self):
val = windowsc.wxWindow_GetFont(self.this)
val = wxFontPtr(val)
val.thisown = 1
return val
def GetForegroundColour(self):
val = windowsc.wxWindow_GetForegroundColour(self.this)
@@ -94,9 +107,6 @@ class wxWindowPtr(wxEvtHandlerPtr):
def GetId(self):
val = windowsc.wxWindow_GetId(self.this)
return val
def GetPosition(self):
val = windowsc.wxWindow_GetPosition(self.this)
return val
def GetLabel(self):
val = windowsc.wxWindow_GetLabel(self.this)
return val
@@ -107,6 +117,9 @@ class wxWindowPtr(wxEvtHandlerPtr):
val = windowsc.wxWindow_GetParent(self.this)
val = wxWindowPtr(val)
return val
def GetPositionTuple(self):
val = windowsc.wxWindow_GetPositionTuple(self.this)
return val
def GetReturnCode(self):
val = windowsc.wxWindow_GetReturnCode(self.this)
return val
@@ -119,8 +132,8 @@ class wxWindowPtr(wxEvtHandlerPtr):
def GetScrollRange(self,arg0):
val = windowsc.wxWindow_GetScrollRange(self.this,arg0)
return val
def GetSize(self):
val = windowsc.wxWindow_GetSize(self.this)
def GetSizeTuple(self):
val = windowsc.wxWindow_GetSizeTuple(self.this)
return val
def GetTextExtent(self,arg0):
val = windowsc.wxWindow_GetTextExtent(self.this,arg0)
@@ -184,6 +197,9 @@ class wxWindowPtr(wxEvtHandlerPtr):
args = tuple(argl)
val = apply(windowsc.wxWindow_ScrollWindow,(self.this,arg0,arg1,)+args)
return val
def SetAcceleratorTable(self,arg0):
val = windowsc.wxWindow_SetAcceleratorTable(self.this,arg0.this)
return val
def SetAutoLayout(self,arg0):
val = windowsc.wxWindow_SetAutoLayout(self.this,arg0)
return val
@@ -253,6 +269,26 @@ class wxWindowPtr(wxEvtHandlerPtr):
def Validate(self):
val = windowsc.wxWindow_Validate(self.this)
return val
def ConvertDialogPointToPixels(self,arg0):
val = windowsc.wxWindow_ConvertDialogPointToPixels(self.this,arg0.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def ConvertDialogSizeToPixels(self,arg0):
val = windowsc.wxWindow_ConvertDialogSizeToPixels(self.this,arg0.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def ConvertPixelPointToDialog(self,arg0):
val = windowsc.wxWindow_ConvertPixelPointToDialog(self.this,arg0.this)
val = wxPointPtr(val)
val.thisown = 1
return val
def ConvertPixelSizeToDialog(self,arg0):
val = windowsc.wxWindow_ConvertPixelSizeToDialog(self.this,arg0.this)
val = wxSizePtr(val)
val.thisown = 1
return val
def __repr__(self):
return "<C wxWindow instance>"
class wxWindow(wxWindowPtr):
@@ -265,7 +301,7 @@ class wxWindow(wxWindowPtr):
args = tuple(argl)
self.this = apply(windowsc.new_wxWindow,(arg0.this,arg1,)+args)
self.thisown = 1
wxp._StdWindowCallbacks(self)
wx._StdWindowCallbacks(self)
@@ -289,7 +325,7 @@ class wxPanel(wxPanelPtr):
args = tuple(argl)
self.this = apply(windowsc.new_wxPanel,(arg0.this,arg1,)+args)
self.thisown = 1
wxp._StdWindowCallbacks(self)
wx._StdWindowCallbacks(self)
@@ -340,7 +376,7 @@ class wxDialog(wxDialogPtr):
args = tuple(argl)
self.this = apply(windowsc.new_wxDialog,(arg0.this,arg1,arg2,)+args)
self.thisown = 1
wxp._StdDialogCallbacks(self)
wx._StdDialogCallbacks(self)
@@ -385,8 +421,8 @@ class wxScrolledWindow(wxScrolledWindowPtr):
args = tuple(argl)
self.this = apply(windowsc.new_wxScrolledWindow,(arg0.this,)+args)
self.thisown = 1
wxp._StdWindowCallbacks(self)
wxp._StdOnScrollCallbacks(self)
wx._StdWindowCallbacks(self)
wx._StdOnScrollCallbacks(self)