HTML Help format. If your system doesn't know what to do with the help
file, you can install the HTML Help Viewer as part of IE 4+, NT
Service Pack 4+, or the HTML Workshop at
+
http://msdn.microsoft.com/workshop/author/htmlhelp/download.asp.
self.sizer = sizerFunc(self)
self.CreateStatusBar()
-
+ self.SetStatusText("Resize this frame to see how the sizers respond...")
self.sizer.FitWindow(self)
-
def OnSize(self, event):
size = self.GetClientSize()
self.sizer.Layout(size)
EVT_LIST_ITEM_SELECTED(self, tID, self.OnItemSelected)
EVT_LEFT_DCLICK(self.list, self.OnDoubleClick)
EVT_COMMAND_RIGHT_CLICK(self.list, tID, self.OnRightClick)
+ EVT_RIGHT_DOWN(self.list, self.OnRightDown)
+
+
+ def OnRightDown(self, event):
+ self.x = event.GetX()
+ self.log.WriteText("x = %d\n" % self.x)
+ event.Skip()
def OnItemSelected(self, event):
self.currentItem = event.m_itemIndex
def OnDoubleClick(self, event):
self.log.WriteText("OnDoubleClick item %s\n" % self.list.GetItemText(self.currentItem))
+
def OnRightClick(self, event):
self.log.WriteText("OnRightClick %s\n" % self.list.GetItemText(self.currentItem))
-
+ menu = wxPyMenu()
+ tPopupID1 = 0
+ tPopupID2 = 1
+ tPopupID3 = 2
+ menu.Append(tPopupID1, "One")
+ menu.Append(tPopupID2, "Two")
+ menu.Append(tPopupID3, "Three")
+ EVT_MENU(self, tPopupID1, self.OnPopupOne)
+ EVT_MENU(self, tPopupID2, self.OnPopupTwo)
+ EVT_MENU(self, tPopupID3, self.OnPopupThree)
+ pos = self.list.GetItemPosition(self.currentItem)
+ self.PopupMenu(menu, self.x, pos.y)
+
+ def OnPopupOne(self, event):
+ self.log.WriteText("Popup one\n")
+
+ def OnPopupTwo(self, event):
+ self.log.WriteText("Popup two\n")
+
+ def OnPopupThree(self, event):
+ self.log.WriteText("Popup three\n")
def OnSize(self, event):
w,h = self.GetClientSizeTuple()
+
+
#---------------------------------------------------------------------------
def runTest(frame, nb, log):
remarked item: End Block
end
item: Install File
- Source=c:\WINNT\System32\Msvcirt.dll
+ Source=d:\WINNT\System32\Msvcirt.dll
Destination=%SYS%\Msvcirt.dll
Flags=0000001010000011
end
item: Install File
- Source=c:\WINNT\System32\Msvcrt.dll
+ Source=d:\WINNT\System32\Msvcrt.dll
Destination=%SYS%\Msvcrt.dll
Flags=0000001010000011
end
zip -@ -r wxPython\wxPython-src-%1.zip < wxPython\distrib\wxPython.rsp
mkdir wxPython\docs
-copy %WXWIN%\docs\html\wx\*.* wxPython\docs
+copy %WXWIN%\docs\html\wx\*.gif wxPython\docs
+copy %WXWIN%\docs\html\wx\*.htm wxPython\docs
copy wxPython\docs\wx.htm wxPython\docs\index.htm
zip -r wxPython\wxPython-docs-%1.zip wxPython\docs
wxPD_AUTO_HIDE,
wxPD_APP_MODAL,
wxPD_CAN_ABORT,
+ wxPD_ELAPSED_TIME,
+ wxPD_ESTIMATED_TIME,
+ wxPD_REMAINING_TIME,
wxNO_DEFAULT,
};
// with looking up and invoking Python callback methods from C++ virtual
// method redirections. For all classes which have virtuals which should be
// overridable in wxPython, a new subclass is created that contains a
-// wxPyCallbackList. This list is used to hold references to the Python
-// methods.
+// wxPyCallbackHelper.
//---------------------------------------------------------------------------
class wxPyCallbackHelper {
* and things like that.
*
* $Log$
- * Revision 1.11 1999/06/22 07:03:29 RD
- * wxPython 2.1b1 for wxMSW (wxGTK coming soon)
- * Lots of changes, see the README.txt for details...
+ * Revision 1.12 1999/06/28 03:10:35 RD
+ * Final tweaks for 2.1b1
*
************************************************************************/
PyDict_SetItemString(d,"wxPD_AUTO_HIDE", PyInt_FromLong((long) wxPD_AUTO_HIDE));
PyDict_SetItemString(d,"wxPD_APP_MODAL", PyInt_FromLong((long) wxPD_APP_MODAL));
PyDict_SetItemString(d,"wxPD_CAN_ABORT", PyInt_FromLong((long) wxPD_CAN_ABORT));
+ PyDict_SetItemString(d,"wxPD_ELAPSED_TIME", PyInt_FromLong((long) wxPD_ELAPSED_TIME));
+ PyDict_SetItemString(d,"wxPD_ESTIMATED_TIME", PyInt_FromLong((long) wxPD_ESTIMATED_TIME));
+ PyDict_SetItemString(d,"wxPD_REMAINING_TIME", PyInt_FromLong((long) wxPD_REMAINING_TIME));
PyDict_SetItemString(d,"wxNO_DEFAULT", PyInt_FromLong((long) wxNO_DEFAULT));
PyDict_SetItemString(d,"wxDEFAULT", PyInt_FromLong((long) wxDEFAULT));
PyDict_SetItemString(d,"wxDECORATIVE", PyInt_FromLong((long) wxDECORATIVE));
wxPD_AUTO_HIDE = wxc.wxPD_AUTO_HIDE
wxPD_APP_MODAL = wxc.wxPD_APP_MODAL
wxPD_CAN_ABORT = wxc.wxPD_CAN_ABORT
+wxPD_ELAPSED_TIME = wxc.wxPD_ELAPSED_TIME
+wxPD_ESTIMATED_TIME = wxc.wxPD_ESTIMATED_TIME
+wxPD_REMAINING_TIME = wxc.wxPD_REMAINING_TIME
wxNO_DEFAULT = wxc.wxNO_DEFAULT
wxDEFAULT = wxc.wxDEFAULT
wxDECORATIVE = wxc.wxDECORATIVE