working of DisableCellEditControl in wxPython 
Author Message
 working of DisableCellEditControl in wxPython

I was playing with the wxPython.grid classes and observed the following
behavior on using DisableCellEditControl and HideCellEditControl:

the insertbar is not shown anymore, but the cell in question can still
be edited.

See code snippet below as derived from demo example

class SimpleGrid(wxGrid):
    def __init__(self, parent, log):
        self.log = log
        wxGrid.__init__(self, parent, DEFAULT)
        self.moveTo = None
        wx.EVT_IDLE(self, self.OnIdle)
        self.CreateGrid(10, 3)
        # simple cell formatting
        self.SetColSize(3, 200)
        self.SetRowSize(4, 45)
        self.SetCellValue(0, 0, "First cell")
        self.HideCellEditControl()
        self.DisableCellEditControl()
        self.SetCellValue(1, 1, "Another cell")
        [snip]

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Fri, 23 May 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ActiveX events in wxPython not working

2. wxPython and DISLIN work nicely together

3. wxPython looses function "wxPython.wx.miscc"

4. Jobs, Jobs, Jobs, Work, Work, Work

5. Program of wxPython works on NT but it does'nt works on Win98?? ,

6. Does not work with TPS but works with DBF

7. Working app stops working on new hardware

8. 5.2 Network application works with 95, does not work with 98

9. Does the Autosave works in Excel , if not how to make it work in my program

10. OS/2 Works 3.0 and REXX, it works!

11. how to make this work in guile (it works in scm)

12. EAI works (or doesn't work) differently under different platforms

 

 
Powered by phpBB® Forum Software