I'm totaly new in wx (well in python too...)I can't find help how to draw some graphic (lines/text) in Grid cell?In this example I can enter text but how to do overlay draw? (for example line from bottom left to top right corner?)

Have you taken a look at the wxPython Docs & Demos?I'm quite sure, that there is an example for this. Unlike some other "demos" provided in other programming languages/toolkits, the wxPython Docs & Demos is a huge repository of helpful knowledge. Every (!) widget has it's own example with description, democode, ... Dig into it, you won't be disapointed!

Greetings and all the best,Octopez

Strange women lying in ponds distributing swords is no basis for a system of government.

octopez wrote:Have you taken a look at the wxPython Docs & Demos?I'm quite sure, that there is an example for this. Unlike some other "demos" provided in other programming languages/toolkits, the wxPython Docs & Demos is a huge repository of helpful knowledge. Every (!) widget has it's own example with description, democode, ... Dig into it, you won't be disapointed!

I spend a half a day to find that but without sucess. The documentation for wx is a little confusing comparing for tk one. And a lot of examples is for non python languages...

In the wxpython demo, take a look at the example Grid_megaExample.It uses PyGridCellRenderer to make a custom cell renderer, you overwrite its draw method and using the dc(device contex) draw what you require.

Also in the wxPython3.0 Docs and Demos\wxPython\samples\wxPIA_book\Chapter-14\grid_renderer.py is the following example.

Due to the reasons discussed here we will be moving to python-forum.io/ on October 1 2016This forum will be locked down and no one will be able to post/edit/create threads, etc. here from thereafter. Please create an account at the new site to continue discussion.