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.grid with wx.GridTableBase: col/row inserting/deleting
by Kevin Ollivier other posts by this author
May 7 2008 4:49PM messages near this date
[wxpython-users] wx.grid with wx.GridTableBase: col/row inserting/deleting | [wxpython-users] Static variables in wx.Python?
Hi Gouki,

On May 7, 2008, at 4:33 PM, Gouki wrote:

>  Hello,
> 
>  Could anyone here provide a simple example of inserting/deleting  
>  cols or rows
>  in a wx.grid backed with a data table? The wiki cannot help, and  
>  neither can
>  _wxPython In Action_...

Have you looked at the wxGrid examples in the wxPython demo?

Regards,

Kevin

> 
>  I have tried the following:
> 
>  ****************************************************************************
>  class GridTable(wx.grid.PyGridTableBase):
> 
>  	ncols = 0
>  	nrows = 0
>  	
>  	<snip>
>  	
>  	def InsertCols(self, pos=1, numCols=2):
>  		self.ncols += numCols
>  		return True
> 
>  ***************************************************************************
> 
>  But when I call, say grid.InsertCols(2, 2), nothing happens, even if I
>  refresh... have I missed something?
> 
>  Thanks for any help.
> 
>  -- 
>  Gouki
>  LP,LP,F,F,LK,HP
>  _______________________________________________
>  wxpython-users mailing list
>  wxpython-users@[...].org
>  http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
Gouki
Kevin Ollivier

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved