%pythoncode { wx = core }
-MAKE_CONST_WXSTRING2(DynamicSashNameStr, "dynamicSashWindow");
-MAKE_CONST_WXSTRING2(EditableListBoxNameStr, "editableListBox");
-MAKE_CONST_WXSTRING2(TreeListCtrlNameStr, "treelistctrl");
+MAKE_CONST_WXSTRING2(DynamicSashNameStr, wxT("dynamicSashWindow"));
+MAKE_CONST_WXSTRING2(EditableListBoxNameStr, wxT("editableListBox"));
+MAKE_CONST_WXSTRING2(TreeListCtrlNameStr, wxT("treelistctrl"));
MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
%pythoncode { wx = core }
-MAKE_CONST_WXSTRING2(GLCanvasNameStr, "GLCanvas");
+MAKE_CONST_WXSTRING2(GLCanvasNameStr, wxT("GLCanvas"));
MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
-MAKE_CONST_WXSTRING2(UTF8String, "UTF-8");
-MAKE_CONST_WXSTRING2(StyleString, "style");
-MAKE_CONST_WXSTRING2(SizeString, "size");
-MAKE_CONST_WXSTRING2(PosString, "pos");
-MAKE_CONST_WXSTRING2(BitmapString, "bitmap");
-MAKE_CONST_WXSTRING2(IconString, "icon");
-MAKE_CONST_WXSTRING2(FontString, "font");
+MAKE_CONST_WXSTRING2(UTF8String, wxT("UTF-8"));
+MAKE_CONST_WXSTRING2(StyleString, wxT("style"));
+MAKE_CONST_WXSTRING2(SizeString, wxT("size"));
+MAKE_CONST_WXSTRING2(PosString, wxT("pos"));
+MAKE_CONST_WXSTRING2(BitmapString, wxT("bitmap"));
+MAKE_CONST_WXSTRING2(IconString, wxT("icon"));
+MAKE_CONST_WXSTRING2(FontString, wxT("font"));
%include _xrc_rename.i
self.tx = wx.StaticText(self, -1,
"This sample allows you to see all the stock cursors \n"
"available to wxPython. Simply select a name from the \n"
- "wx.Choice and then move the mouse into the window below \n"
- "to see the cursor. NOTE: not all stock cursors have a \n"
- "specific representaion on all platforms.")
+ "wx.Choice and then move the mouse into the window \n"
+ "below to see the cursor. NOTE: not all stock cursors \n"
+ "have a specific representaion on all platforms.")
self.win = wx.Window(self, -1, size=(200,200), style=wx.SIMPLE_BORDER)
self.win.SetBackgroundColour("white")
# Setup the layout
gbs = wx.GridBagSizer()
- gbs.Add(self.cb, (2,2))
- gbs.Add(self.tx, (2,4))
+ gbs.Add(self.cb, (2,1))
+ gbs.Add(self.tx, (2,3))
gbs.Add(self.win, (5,0), (1, 6), wx.ALIGN_CENTER)
self.SetSizer(gbs)
addWX = True
- if doRename:
+ if doRename and name:
old = new = name
if old.startswith('wx') and not old.startswith('wxEVT_'):
# remove all wx prefixes except wxEVT_ and write a %rename directive for it
%enddef
%define MAKE_CONST_WXSTRING2(strname, val)
- %{ static const wxString wxPy##strname(wxT(val)); %}
+ %{ static const wxString wxPy##strname(val); %}
%immutable;
%name(strname) const wxString wxPy##strname;
%mutable;
MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
-MAKE_CONST_WXSTRING2(HtmlWindowNameStr, "htmlWindow")
-MAKE_CONST_WXSTRING2(HtmlPrintoutTitleStr, "Printout")
-MAKE_CONST_WXSTRING2(HtmlPrintingTitleStr, "Printing")
+MAKE_CONST_WXSTRING2(HtmlWindowNameStr, wxT("htmlWindow"))
+MAKE_CONST_WXSTRING2(HtmlPrintoutTitleStr, wxT("Printout"))
+MAKE_CONST_WXSTRING2(HtmlPrintingTitleStr, wxT("Printing"))
// TODO: Split this file into multiple %included files that coresponds to the