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:
Robin Dunn
1999-06-28 03:10:35 +00:00
parent fd15d8f1b0
commit a08cbc0168
10 changed files with 48 additions and 10 deletions

View File

@@ -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 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 file, you can install the HTML Help Viewer as part of IE 4+, NT
Service Pack 4+, or the HTML Workshop at Service Pack 4+, or the HTML Workshop at
http://msdn.microsoft.com/workshop/author/htmlhelp/download.asp. http://msdn.microsoft.com/workshop/author/htmlhelp/download.asp.

View File

@@ -260,11 +260,10 @@ class TestFrame(wxFrame):
self.sizer = sizerFunc(self) self.sizer = sizerFunc(self)
self.CreateStatusBar() self.CreateStatusBar()
self.SetStatusText("Resize this frame to see how the sizers respond...")
self.sizer.FitWindow(self) self.sizer.FitWindow(self)
def OnSize(self, event): def OnSize(self, event):
size = self.GetClientSize() size = self.GetClientSize()
self.sizer.Layout(size) self.sizer.Layout(size)

View File

@@ -50,6 +50,13 @@ class TestListCtrlPanel(wxPanel):
EVT_LIST_ITEM_SELECTED(self, tID, self.OnItemSelected) EVT_LIST_ITEM_SELECTED(self, tID, self.OnItemSelected)
EVT_LEFT_DCLICK(self.list, self.OnDoubleClick) EVT_LEFT_DCLICK(self.list, self.OnDoubleClick)
EVT_COMMAND_RIGHT_CLICK(self.list, tID, self.OnRightClick) 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): def OnItemSelected(self, event):
self.currentItem = event.m_itemIndex self.currentItem = event.m_itemIndex
@@ -58,9 +65,30 @@ class TestListCtrlPanel(wxPanel):
def OnDoubleClick(self, event): def OnDoubleClick(self, event):
self.log.WriteText("OnDoubleClick item %s\n" % self.list.GetItemText(self.currentItem)) self.log.WriteText("OnDoubleClick item %s\n" % self.list.GetItemText(self.currentItem))
def OnRightClick(self, event): def OnRightClick(self, event):
self.log.WriteText("OnRightClick %s\n" % self.list.GetItemText(self.currentItem)) 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): def OnSize(self, event):
w,h = self.GetClientSizeTuple() w,h = self.GetClientSizeTuple()
@@ -69,6 +97,8 @@ class TestListCtrlPanel(wxPanel):
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
def runTest(frame, nb, log): def runTest(frame, nb, log):

View File

@@ -812,12 +812,12 @@ end
remarked item: End Block remarked item: End Block
end end
item: Install File item: Install File
Source=c:\WINNT\System32\Msvcirt.dll Source=d:\WINNT\System32\Msvcirt.dll
Destination=%SYS%\Msvcirt.dll Destination=%SYS%\Msvcirt.dll
Flags=0000001010000011 Flags=0000001010000011
end end
item: Install File item: Install File
Source=c:\WINNT\System32\Msvcrt.dll Source=d:\WINNT\System32\Msvcrt.dll
Destination=%SYS%\Msvcrt.dll Destination=%SYS%\Msvcrt.dll
Flags=0000001010000011 Flags=0000001010000011
end end

Binary file not shown.

View File

@@ -5,7 +5,8 @@
zip -@ -r wxPython\wxPython-src-%1.zip < wxPython\distrib\wxPython.rsp zip -@ -r wxPython\wxPython-src-%1.zip < wxPython\distrib\wxPython.rsp
mkdir wxPython\docs 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 copy wxPython\docs\wx.htm wxPython\docs\index.htm
zip -r wxPython\wxPython-docs-%1.zip wxPython\docs zip -r wxPython\wxPython-docs-%1.zip wxPython\docs

View File

@@ -399,6 +399,9 @@ enum {
wxPD_AUTO_HIDE, wxPD_AUTO_HIDE,
wxPD_APP_MODAL, wxPD_APP_MODAL,
wxPD_CAN_ABORT, wxPD_CAN_ABORT,
wxPD_ELAPSED_TIME,
wxPD_ESTIMATED_TIME,
wxPD_REMAINING_TIME,
wxNO_DEFAULT, wxNO_DEFAULT,
}; };

View File

@@ -146,8 +146,7 @@ private:
// with looking up and invoking Python callback methods from C++ virtual // with looking up and invoking Python callback methods from C++ virtual
// method redirections. For all classes which have virtuals which should be // method redirections. For all classes which have virtuals which should be
// overridable in wxPython, a new subclass is created that contains a // overridable in wxPython, a new subclass is created that contains a
// wxPyCallbackList. This list is used to hold references to the Python // wxPyCallbackHelper.
// methods.
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
class wxPyCallbackHelper { class wxPyCallbackHelper {

View File

@@ -33,9 +33,8 @@
* and things like that. * and things like that.
* *
* $Log$ * $Log$
* Revision 1.11 1999/06/22 07:03:29 RD * Revision 1.12 1999/06/28 03:10:35 RD
* wxPython 2.1b1 for wxMSW (wxGTK coming soon) * Final tweaks for 2.1b1
* Lots of changes, see the README.txt for details...
* *
************************************************************************/ ************************************************************************/
@@ -1558,6 +1557,9 @@ SWIGEXPORT(void,initwxc)() {
PyDict_SetItemString(d,"wxPD_AUTO_HIDE", PyInt_FromLong((long) wxPD_AUTO_HIDE)); 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_APP_MODAL", PyInt_FromLong((long) wxPD_APP_MODAL));
PyDict_SetItemString(d,"wxPD_CAN_ABORT", PyInt_FromLong((long) wxPD_CAN_ABORT)); 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,"wxNO_DEFAULT", PyInt_FromLong((long) wxNO_DEFAULT));
PyDict_SetItemString(d,"wxDEFAULT", PyInt_FromLong((long) wxDEFAULT)); PyDict_SetItemString(d,"wxDEFAULT", PyInt_FromLong((long) wxDEFAULT));
PyDict_SetItemString(d,"wxDECORATIVE", PyInt_FromLong((long) wxDECORATIVE)); PyDict_SetItemString(d,"wxDECORATIVE", PyInt_FromLong((long) wxDECORATIVE));

View File

@@ -345,6 +345,9 @@ wxACCEL_SHIFT = wxc.wxACCEL_SHIFT
wxPD_AUTO_HIDE = wxc.wxPD_AUTO_HIDE wxPD_AUTO_HIDE = wxc.wxPD_AUTO_HIDE
wxPD_APP_MODAL = wxc.wxPD_APP_MODAL wxPD_APP_MODAL = wxc.wxPD_APP_MODAL
wxPD_CAN_ABORT = wxc.wxPD_CAN_ABORT 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 wxNO_DEFAULT = wxc.wxNO_DEFAULT
wxDEFAULT = wxc.wxDEFAULT wxDEFAULT = wxc.wxDEFAULT
wxDECORATIVE = wxc.wxDECORATIVE wxDECORATIVE = wxc.wxDECORATIVE