wxPanel.__init__(self, parent, -1)
self.log = log
- #self.SetFont(wxFont(10, wxSWISS, wxNORMAL, wxBOLD, false))
+ #self.SetFont(wxFont(10, wxSWISS, wxNORMAL, wxBOLD, False))
sizer = wxBoxSizer(wxVERTICAL)
sizer.Add(wxStaticText(self, -1,
EVT_BUTTON(self, 6051, self.OnPaste)
EVT_BUTTON(self, 6052, self.OnCopyBitmap)
- self.SetAutoLayout(true)
+ self.SetAutoLayout(True)
self.SetSizer(sizer)
def OnDrop(self, x, y):
self.log.WriteText("OnDrop: %d %d\n" % (x, y))
- return true
+ return True
def OnData(self, x, y, d):
self.log.WriteText("OnData: %d, %d, %d\n" % (x, y, d))
def __init__(self, parent, log):
wxPanel.__init__(self, parent, -1)
- #self.SetFont(wxFont(10, wxSWISS, wxNORMAL, wxBOLD, false))
+ #self.SetFont(wxFont(10, wxSWISS, wxNORMAL, wxBOLD, False))
sizer = wxBoxSizer(wxVERTICAL)
sizer.Add(wxStaticText(self, -1, " \nDrag some files here:"),
self.text2.SetDropTarget(dt)
sizer.Add(self.text2, 1, wxEXPAND)
- self.SetAutoLayout(true)
+ self.SetAutoLayout(True)
self.SetSizer(sizer)
def __init__(self, parent, log):
wxPanel.__init__(self, parent, -1)
- self.SetAutoLayout(true)
+ self.SetAutoLayout(True)
outsideSizer = wxBoxSizer(wxVERTICAL)
msg = "Clipboard / Drag-And-Drop"
text = wxStaticText(self, -1, "", style=wxALIGN_CENTRE)
- text.SetFont(wxFont(24, wxSWISS, wxNORMAL, wxBOLD, false))
+ text.SetFont(wxFont(24, wxSWISS, wxNORMAL, wxBOLD, False))
text.SetLabel(msg)
w,h = text.GetTextExtent(msg)
text.SetSize(wxSize(w,h+1))