# This file gives the details of what is needed to build this extension
# module so the Makefile can be created.
+###
+### This file should be created by configure. Currently it is tweaked by hand.
+###
+
*shared*
CCC=c++
# Depending on how your Python was built, you may have to set this
# value to use the C++ driver to link with instead of the default
-# C driver. Fo rexample:
-MY_LDSHARED=$(CCC) -shared
+# C driver. For example:
+#MY_LDSHARED=$(CCC) -shared
+MY_LINKCC=$(CCC) --verbose
-## Pick one of these, or set your own
-#TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
+## Pick one of these, or set your own. This is where the
+## wxPython module should be installed. It should be a
+## subdirectory named wxPython.
TARGETDIR=..
+#TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
+
+
+wxpc wxp.cpp helpers.cpp windows.cpp events.cpp misc.cpp gdi.cpp \
+ mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \
+ # CFLAGS
+ -I. -I$(WXWIN)/include -I/usr/local/lib/glib/include -I$(WXWIN)/src \
+ -I/usr/X/include -DSWIG_GLOBAL -D__WXGTK__ \
+ # LFLAGS
+ -L$(WXWIN)/lib/solaris2.6 -L/usr/X/lib \
+ -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 \
+ -lwx_gtk -lgtk -lgdk -lglib -lXext -lX11 -lstdc++ -lgcc
+
+
-wxpc wxp.cpp helpers.cpp windows.cpp events.cpp misc.cpp gdi.cpp \
- mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \
- -I. -I$(WXWIN)/include -I/usr/lib/glib/include -I$(WXWIN)/src \
-# -D__WXDEBUG__ -ldmalloc \
- -DSWIG_GLOBAL -D__WXGTK__ -L$(WXWIN)/lib/Linux -lwx_gtk \
- -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext -lX11
#---------------------------------------------------------------------------
-class MyMiniFrame(wxMiniFrame):
- def __init__(self, parent, ID, title, pos, size, style):
- wxMiniFrame.__init__(self, parent, ID, title, pos, size, style)
- panel = wxPanel(self, -1)
- ID = NewId()
- button = wxButton(panel, ID, "Close Me")
- button.SetPosition(wxPoint(15, 15))
- self.Connect(ID, -1, wxEVT_COMMAND_BUTTON_CLICKED, self.OnCloseMe)
-
- def OnCloseMe(self, event):
- self.Close(true)
-
- def OnCloseWindow(self, event):
- self.Destroy()
+if wxPlatform == '__WXMSW__':
+ class MyMiniFrame(wxMiniFrame):
+ def __init__(self, parent, ID, title, pos, size, style):
+ wxMiniFrame.__init__(self, parent, ID, title, pos, size, style)
+ panel = wxPanel(self, -1)
+ ID = NewId()
+ button = wxButton(panel, ID, "Close Me")
+ button.SetPosition(wxPoint(15, 15))
+ self.Connect(ID, -1, wxEVT_COMMAND_BUTTON_CLICKED, self.OnCloseMe)
+
+ def OnCloseMe(self, event):
+ self.Close(true)
+
+ def OnCloseWindow(self, event):
+ self.Destroy()
#---------------------------------------------------------------------------
menu.Append(200, 'E&xit', 'Get the heck outta here!')
mainmenu.Append(menu, "&It's a menu!")
self.SetMenuBar(mainmenu)
- print menu.GetHelpString(100)
- print mainmenu.GetHelpString(101)
- print mainmenu.GetHelpString(200)
- self.DragAcceptFiles(true)
+ if wxPlatform == '__WXMSW__':
+ print menu.GetHelpString(100)
+ print mainmenu.GetHelpString(101)
+ print mainmenu.GetHelpString(200)
+ self.DragAcceptFiles(true)
self.Connect(-1, -1, wxEVT_COMMAND_MENU_SELECTED, self.OnMenuCommand)
self.Connect(-1, -1, wxEVT_DROP_FILES, self.OnDropFiles)
if event.GetInt() == 200:
self.Close()
elif event.GetInt() == 101:
- win = MyMiniFrame(self, -1, "This is a Mini...",
+ if wxPlatform == '__WXMSW__':
+ win = MyMiniFrame(self, -1, "This is a Mini...",
wxPoint(-1, -1), #wxPyDefaultPosition,
wxSize(150, 150),
wxMINIMIZE_BOX | wxMAXIMIZE_BOX |
wxTHICK_FRAME | wxSYSTEM_MENU |
wxTINY_CAPTION_HORIZ)
- win.Show(true)
+ win.Show(true)
+ else:
+ print 'Sorry, can\'t do mini\'s...'
#----------------------------------------------------------------------------
#
# $Log$
+# Revision 1.2 1998/08/22 19:51:17 RD
+# some tweaks for wxGTK
+#
# Revision 1.1 1998/08/09 08:28:05 RD
# Initial version
#
def __init__(self, parent, id, title):
wxFrame.__init__(self, parent, id, title, wxPyDefaultPosition,
wxSize(420, 200))
- self.icon = wxIcon('bitmaps/mondrian.ico', wxBITMAP_TYPE_ICO)
- self.SetIcon(self.icon)
+ if wxPlatform == '__WXMSW__':
+ self.icon = wxIcon('bitmaps/mondrian.ico', wxBITMAP_TYPE_ICO)
+ self.SetIcon(self.icon)
self.mainmenu = wxMenuBar()
menu = wxMenu()
def OnTestSimpleControls(self, event):
dlg = TestSimpleControlsDlg(self, self)
- dlg.SetModal(true)
dlg.Centre()
- dlg.Show(true)
+ dlg.ShowModal()
dlg.Destroy()
def OnTestTimer(self, event):
#----------------------------------------------------------------------------
#
# $Log$
+# Revision 1.2 1998/08/22 19:51:18 RD
+# some tweaks for wxGTK
+#
# Revision 1.1 1998/08/09 08:28:05 RD
# Initial version
#