Re: wxgrid - is there an easy way to set alignment of a column?

2013-03-15 Thread tinnews
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 SetDefaultCell

Re: wxgrid - is there an easy way to set alignment of a column?

2013-03-15 Thread Ian Kelly
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 fo

wxgrid - is there an easy way to set alignment of a column?

2013-03-15 Thread tinnews
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 SetCellAlignment() which sets it for a spe

wxGrid, PyGridTableBase, strange SWIG error message!

2011-05-01 Thread Laszlo Nagy
I'm trying to create a special widget that is a wx.Grid and also a PyGridTableBase. In my special case of application, I really need to have a grid that uses itself for getting cell data and cell attributes. Here is a test program, demonstrating my problem: import wx from wx.grid import Grid,P

wxGrid: Problem with unicode mathematical symbols

2006-12-20 Thread Massi
Hi everyone, I'm trying to build (on windows environment) a grid in which every cell contains a mathematical formula, the problem is the following: when I try to put in the cells some mathematical symbol (such as those for "belong to", "for all" or "exists") with the method SetCellValue I always se

Re: wxpython wxgrid question

2006-06-09 Thread rbann11
g all the frame space, and it's what you want. > Why that ? > If you do it (for instance with the script below), and you try to > manually reduce/increase the size of the window, you should see > scrollbars at the edge of the window ; these scrollbars come from the > grid, becaus

Re: wxpython wxgrid question

2006-06-09 Thread rbann11
g all the frame space, and it's what you want. > Why that ? > If you do it (for instance with the script below), and you try to > manually reduce/increase the size of the window, you should see > scrollbars at the edge of the window ; these scrollbars come from the > grid, becaus

Re: wxpython wxgrid question

2006-06-07 Thread jean-michel bain-cornu
crease the size of the window, you should see scrollbars at the edge of the window ; these scrollbars come from the grid, because they take in account the labels row and col (wxGrid comes from wxScrolledWindow). You can see that no more space is available beyond the scrollbar, so the grid takes

Re: wxpython wxgrid question

2006-06-03 Thread rbann11
Tim Roberts wrote: > [EMAIL PROTECTED] wrote: > > > > I am looking for example code that consists of just a frame and a > >grid(10x2). The grid must fill the its parent even if the frame is > >resized. > > Have you gone through the wxPython demo application? It contains examples > of every stan

Re: wxpython wxgrid question

2006-06-03 Thread Tim Roberts
[EMAIL PROTECTED] wrote: > > I am looking for example code that consists of just a frame and a >grid(10x2). The grid must fill the its parent even if the frame is >resized. Have you gone through the wxPython demo application? It contains examples of every standard control and almost every behav

Re: wxpython wxgrid question

2006-06-03 Thread Jim Segrave
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >Hi, > > I am looking for example code that consists of just a frame and a >grid(10x2). The grid must fill the its parent even if the frame is >resized. This simple program makes a two element window, the lower half of which is a gridde

wxpython wxgrid question

2006-06-03 Thread rbann11
Hi, I am looking for example code that consists of just a frame and a grid(10x2). The grid must fill the its parent even if the frame is resized. Thanks in advance, Roger -- http://mail.python.org/mailman/listinfo/python-list

Re: wxGrid and Focus Event

2005-12-05 Thread Magnus Lycka
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.

Re: wxGrid and Focus Event

2005-11-30 Thread Bugs
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

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
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

Re: wxGrid and Focus Event

2005-11-29 Thread Bugs
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 th

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
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

Re: wxGrid and Focus Event

2005-11-29 Thread lux
TANKS!!! Now it work!!! Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
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

Re: wxGrid and Focus Event

2005-11-29 Thread lux
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

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
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.Bi

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
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: &

wxGrid and Focus Event

2005-11-29 Thread lux
Hi, How can I capture the EVT_SET_FOCUS on a wxGrid? Tank's in advance Luca -- http://mail.python.org/mailman/listinfo/python-list

How to disable rangeselect in wxGrid

2005-07-06 Thread [EMAIL PROTECTED]
Hi ! I have a little problem with wxGrid. In Delphi I can set in grids how I want to select cells. I can select only individual cells, or ranges. In my program I don't wanna use ranges. But I don't find any methods or properties what can set this option. The range selection mode is d

Re: help with wxPython and wxGrid

2005-04-10 Thread vincent wehren
"Sam the Cat" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | using "from wxPython.wx import *" under python2.3 I cannot seem to find the | wxGrid class -- it says its undefined -- am I missing something obvious ? I | know the globalspace import is

help with wxPython and wxGrid

2005-04-10 Thread Sam the Cat
using "from wxPython.wx import *" under python2.3 I cannot seem to find the wxGrid class -- it says its undefined -- am I missing something obvious ? I know the globalspace import is not the best, but that how I got started ;) -- any help owuld be appreciated -- http://mail.python.o

Re: wxGrid

2005-02-28 Thread Paul McNett
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

Re: wxGrid

2005-02-27 Thread Michalis Kabrianis
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

wxGrid

2005-02-27 Thread Gensek
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 know. I reques

Re: wxgrid multiline cell editor

2005-02-10 Thread jean-michel
"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 i

wxgrid multiline cell editor

2005-02-09 Thread James
wxpython 2.5.3 hi, anyone know how to make a multiline cell editor for wxgrid? thank you :) best regards, James -- http://mail.python.org/mailman/listinfo/python-list