Ian Kelly wrote:
> On Fri, Mar 15, 2013 at 5:50 AM, wrote:
> > I'm using wxGrid and finding it fairly straightforward but I can't see
> > an easy way to set the alignment (left, centre, right) for a whole
> > column.
> >
> > There's SetDefaultCellAlignment() which sets the default for the whole
On Fri, Mar 15, 2013 at 5:50 AM, wrote:
> I'm using wxGrid and finding it fairly straightforward but I can't see
> an easy way to set the alignment (left, centre, right) for a whole
> column.
>
> There's SetDefaultCellAlignment() which sets the default for the whole
> grid and there's SetCellAlig
Paul McNett wrote:
> Bugs wrote:
>
>> So Paul, are you saying there's a bug with the wxGrid control and if so,
>
> Yes, I think it is a bug.
I'm not so sure. I seem to remember being told on the mailing list
that I had to check the specific sub-window for events. Even if it's
by design, it's ce
Paul McNett wrote:
>
> If I filed a proper bug report for everything wrong with
> wxPython/wxWidgets, I'd probably not get anything else done. But on the
> other hand you couldn't force me to stop using wxPython if you tried!
>
Like any open-source software, the community is what makes it bett
Bugs wrote:
> So Paul, are you saying there's a bug with the wxGrid control and if so,
Yes, I think it is a bug.
> do you know if there's been a bug-report submitted to the wxWidgets
> and/or wxPython folks?
I don't know, but I've been meaning to check.
> Or is this just the way the wxGrid
So Paul, are you saying there's a bug with the wxGrid control and if so,
do you know if there's been a bug-report submitted to the wxWidgets
and/or wxPython folks?
Or is this just the way the wxGrid control works?
Thanks!
Paul McNett wrote:
> Not so fast. I've found out that I had to do the fol
lux wrote:
> TANKS!!!
> Now it work!!!
Not so fast. I've found out that I had to do the following ugly workaround to
ensure it works in all cases:
def _initEvents(self):
...
if self.BaseClass.__name__ == "dGrid":
## Ugly workaround for grids not firing focus event
TANKS!!!
Now it work!!!
Luca
--
http://mail.python.org/mailman/listinfo/python-list
lux wrote:
> Can you try this code?
Sure, thanks for posting it!
> If you press only the TAB key
> the focus go from the TextCtrl to the Grid (I suppose)
> but onGridFocus in not called.
Confirmed, at least on Gtk.
> any idea?
Yep, the grid is actually a collection of subwindows, and I made
Can you try this code?
If you press only the TAB key
the focus go from the TextCtrl to the Grid (I suppose)
but onGridFocus in not called.
any idea?
Luca.
##
import wx
import wx.grid
app = wx.PySimpleApp()
f = wx.Frame(None, -1, "")
p = wx.Panel(f, -1)
s = wx.BoxSizer(wx.VERT
Paul McNett wrote:
> lux wrote:
>
>>How can I capture the EVT_SET_FOCUS on a wxGrid?
>
>
> If you want to catch when the grid as a whole gets the focus, use:
>
> >>> grid.Bind(wx.grid.EVT_SET_FOCUS, self.onGridFocus)
Oops, my bad:
>>> grid.Bind(wx.EVT_SET_FOCUS, self.onGridFocus)
> If you
lux wrote:
> How can I capture the EVT_SET_FOCUS on a wxGrid?
If you want to catch when the grid as a whole gets the focus, use:
>>> grid.Bind(wx.grid.EVT_SET_FOCUS, self.onGridFocus)
If you want to catch when a cell in the grid gets the focus, use:
>>> grid.Bind(wx.grid.EVT_GRID_SELECT_CELL
Gensek wrote:
I have a grid. I want to sort it when a column label is clicked. I know
about the EVT_GRID_LABEL_LEFT_DCLICK event, but that is not enough. I
do not merely need to know that a label was clicked. I need to know
which label was clicked. I do not know how to do that. I suspect you
might
Gensek wrote:
I have a grid. I want to sort it when a column label is clicked. I know
about the EVT_GRID_LABEL_LEFT_DCLICK event, but that is not enough. I
do not merely need to know that a label was clicked. I need to know
which label was clicked. I do not know how to do that. I suspect you
might
"James" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> wxpython 2.5.3
> anyone know how to make a multiline cell editor for wxgrid?
Hello,
You can do that by a "wxGridCellAutoWrapStringEditor".
You can test it by modifying GridSimple.py in the demo by adding (at line 24
i
15 matches
Mail list logo