ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> wxpython-users
wxpython-users
Re: [wxpython-users] wx.ListCtrl(), Report Mode, Editing Columns
by Robin Dunn other posts by this author
May 9 2008 11:34AM messages near this date
Re: [wxpython-users] wx.ListCtrl(), Report Mode, Editing Columns | Re: [wxpython-users] wx.ListCtrl(), Report Mode, Editing Columns
Rich Shepard wrote:
>  On Fri, 9 May 2008, Robin Dunn wrote:
>  
> > What is type(row)?
>  
>    In the method:
>  
>      row = self.itemID
>      idx = self.rulesList.GetFirstSelected()
>  
>    Perhaps a better answer: when I 'print row' in the method I see this:
>  
>  <wx._controls.ListItem; proxy of <Swig Object of type 'wxListItem *' at
>  0x-405afaac> >
>  
>    When I 'print idx' I see:
>  
>  2
>  
>  because that row is the third in the list.

So you should be using idx for your calls to GetItem.


>    How to get all items in the row so one or more can be edited in a report
>  mode list seems to be evading my efforts. Perhaps I should reframe my
>  question to "given that editing is not trivial with a report mode list, how
>  should I go about allowing editing?"

For in place editing is the wx.lib.mixins.listctrl.TextEditMixin, or you 
can just switch to wx.grid.Grid.  Or you can not use in place editing 
but instead popup a dilog when an item in the list is activated (double 
clicked or Enter is pressed) that contains the values to be edited.  If 
the dialog is completed successfully you can put the values back into 
the list ctrl.



-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!

_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
Rich Shepard
Robin Dunn
Mike Driscoll
Rich Shepard
Rich Shepard
Robin Dunn
Rich Shepard
Robin Dunn
C M
C M
Mike Driscoll
Rich Shepard
Rich Shepard
Robin Dunn
Rich Shepard

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved