]> git.saurik.com Git - wxWidgets.git/commitdiff
Some little tweaks...
authorRobin Dunn <robin@alldunn.com>
Thu, 18 Oct 2001 19:19:38 +0000 (19:19 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 18 Oct 2001 19:19:38 +0000 (19:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/b
wxPython/demo/DrawXXXList.py
wxPython/demo/wxListCtrl.py

index 1b9e33f442c223bd06af05b700d8e35bb5911827..edc916a058ef50dd7b535464b535126e21f8c603 100755 (executable)
@@ -39,7 +39,8 @@ elif [ "$1" = "d" ]; then
 # "t" --> touch *.i files
 elif [ "$1" = "t" ]; then
     shift
-    CMD="set CMD=touch src\*.i; touch contrib\glcanvas\*.i; touch contrib\ogl\*.i; touch contrib\stc\*.i"
+    #CMD="set CMD=touch src\*.i; touch contrib\glcanvas\*.i; touch contrib\ogl\*.i; touch contrib\stc\*.i"
+    CMD='find . -name "*.i" | xargs -l touch'
 
 # "i" --> install
 elif [ "$1" = "i" ]; then
@@ -110,7 +111,7 @@ fi
 
 
 echo $CMD
-$CMD
+eval $CMD
 
 
 if [ "$OTHERCMD" != "" ]; then
index 46afed8951885d532d95822ae78cad233975fd44..1783ef76e9a87802fe39b4ebe96e152afca09c66 100644 (file)
@@ -108,7 +108,11 @@ def runTest(frame, nb, log):
     h = nb.GetClientSize().height
     if w < 300: w = 300
     if h < 300: h = 300
-    win = TestPanel(nb, wxSize(w, h), log)
+    win = wxPanel(nb, -1)
+    tp = TestPanel(win, wxSize(w, h), log)
+    def OnPanelSize(evt, tp=tp):
+        tp.SetSize(evt.GetSize())
+    EVT_SIZE(win, OnPanelSize)
     return win
 
 #----------------------------------------------------------------------
index a97cf24a3f4fa3fa6fb8a93545fac468b1f641d5..f4ebd2d4dc0eadc83f9c77ff799ed31e77d0bd74 100644 (file)
@@ -122,6 +122,7 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin):
             self.list.InsertColumnInfo(2, info)
 
 
+
         items = musicdata.items()
         for x in range(len(items)):
             key, data = items[x]
@@ -138,6 +139,7 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin):
 
         self.list.SetColumnWidth(0, wxLIST_AUTOSIZE)
         self.list.SetColumnWidth(1, wxLIST_AUTOSIZE)
+        self.list.SetColumnWidth(2, 100)
 
         # show how to select an item
         self.list.SetItemState(5, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED)