Final tweaks for 2.1b1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -23,6 +23,7 @@ the help file. To help you save disk space I'm now using Microsoft's
|
||||
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.
|
||||
|
||||
|
||||
|
@@ -260,11 +260,10 @@ class TestFrame(wxFrame):
|
||||
|
||||
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)
|
||||
|
@@ -50,6 +50,13 @@ class TestListCtrlPanel(wxPanel):
|
||||
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
|
||||
@@ -58,9 +65,30 @@ class TestListCtrlPanel(wxPanel):
|
||||
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()
|
||||
@@ -69,6 +97,8 @@ class TestListCtrlPanel(wxPanel):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
def runTest(frame, nb, log):
|
||||
|
@@ -812,12 +812,12 @@ end
|
||||
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
|
||||
|
Binary file not shown.
@@ -5,7 +5,8 @@
|
||||
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
|
||||
|
@@ -399,6 +399,9 @@ enum {
|
||||
wxPD_AUTO_HIDE,
|
||||
wxPD_APP_MODAL,
|
||||
wxPD_CAN_ABORT,
|
||||
wxPD_ELAPSED_TIME,
|
||||
wxPD_ESTIMATED_TIME,
|
||||
wxPD_REMAINING_TIME,
|
||||
|
||||
wxNO_DEFAULT,
|
||||
};
|
||||
|
@@ -146,8 +146,7 @@ private:
|
||||
// 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 {
|
||||
|
@@ -33,9 +33,8 @@
|
||||
* 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
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
@@ -1558,6 +1557,9 @@ SWIGEXPORT(void,initwxc)() {
|
||||
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));
|
||||
|
@@ -345,6 +345,9 @@ wxACCEL_SHIFT = wxc.wxACCEL_SHIFT
|
||||
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
|
||||
|
Reference in New Issue
Block a user