From 0e94700456e41f5fcf041cfef8a83d0f296d2062 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 18 Oct 2001 19:19:38 +0000 Subject: [PATCH] Some little tweaks... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/b | 5 +++-- wxPython/demo/DrawXXXList.py | 6 +++++- wxPython/demo/wxListCtrl.py | 2 ++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/wxPython/b b/wxPython/b index 1b9e33f442..edc916a058 100755 --- a/wxPython/b +++ b/wxPython/b @@ -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 diff --git a/wxPython/demo/DrawXXXList.py b/wxPython/demo/DrawXXXList.py index 46afed8951..1783ef76e9 100644 --- a/wxPython/demo/DrawXXXList.py +++ b/wxPython/demo/DrawXXXList.py @@ -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 #---------------------------------------------------------------------- diff --git a/wxPython/demo/wxListCtrl.py b/wxPython/demo/wxListCtrl.py index a97cf24a3f..f4ebd2d4dc 100644 --- a/wxPython/demo/wxListCtrl.py +++ b/wxPython/demo/wxListCtrl.py @@ -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) -- 2.45.2