]> git.saurik.com Git - wxWidgets.git/commitdiff
Final tweaks for 2.1b1
authorRobin Dunn <robin@alldunn.com>
Mon, 28 Jun 1999 03:10:35 +0000 (03:10 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 28 Jun 1999 03:10:35 +0000 (03:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/wxPython/README.txt
utils/wxPython/demo/Sizers.py
utils/wxPython/demo/wxListCtrl.py
utils/wxPython/distrib/wxPython.wse
utils/wxPython/distrib/wxPython.wsm
utils/wxPython/distrib/zipit.bat
utils/wxPython/src/_defs.i
utils/wxPython/src/helpers.h
utils/wxPython/src/msw/wx.cpp
utils/wxPython/src/msw/wx.py

index 5d1f41fd207f8dea9515da2eae02bbbb57be6ac4..d4b90b7ac5670d0c44f5f950a85b5e5c80ba6647 100644 (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
 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.
 
 
index fcc99b96e0af614fc1072d4baff5dc0c872db56b..ea76aec68c885f97479308ca189acea3dfba2449 100644 (file)
@@ -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)
index f9c0ac4d49adb8d790b67856bb5ba7b07defb10a..df3a9f53d29f155761d5e5ff1259cc25066eb3df 100644 (file)
@@ -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):
index d8e328fde41beb033f85541fa063c8b9d0578d19..72b1b7d76d15b1728962f805c90ec5e35d75d9cd 100644 (file)
@@ -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
index 47c17ecc09db0d5cfde2ba9f3770bc364a7799dd..49c7671da1794e515576f772c3ac5403a27ff7aa 100644 (file)
Binary files a/utils/wxPython/distrib/wxPython.wsm and b/utils/wxPython/distrib/wxPython.wsm differ
index 17d6b2a90680fe2fdb3204fd9ec9e565d8265952..b8713f58a8f4f5f363beef3167619262a31b1102 100755 (executable)
@@ -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
index 0d53a38daca13ef184839c06080aa3d6f2cc4a37..f005f8a785295c6eec76765eac26a294e747537a 100644 (file)
@@ -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,
 };
index 02433e748b33857215552b24a53062a368048e97..849625a4bfe321786cc92556707ac25ec64014d6 100644 (file)
@@ -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 {
index 20d8e4f6ec462c03baffc96ab8e2bd5e37e96c70..c576cf1f3121a74957939021ed696c5e8f80a725 100644 (file)
@@ -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));
index 578ea9c6a703013a28b4243247c03694bba47b35..39830214216ed31396431f43884ef04e440ebc97 100644 (file)
@@ -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