Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WxGrid Title
#1
I created a few wxGrid on a wxFrame. I need to have a title displayed on each of them. I am wondering if possible to set it on the left-top corner which is empty. Thanks.

import wx
import wx.grid

app = wx.App()
window = wx.Frame(None, -1, title='Test', size=(960, 850), pos = (-5, 0))
background = wx.Panel(window)
background.SetBackgroundColour("Blue")

grid = wx.grid.Grid(background, size=(312,150), pos=(0,0))
grid.CreateGrid(6,6)

window.Show()
app.MainLoop()
Reply


Messages In This Thread
WxGrid Title - by ian - Jul-08-2017, 11:23 PM
RE: WxGrid Title - by Larz60+ - Jul-09-2017, 12:39 AM
RE: WxGrid Title - by ian - Jul-09-2017, 01:48 AM
RE: WxGrid Title - by Larz60+ - Jul-09-2017, 05:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  wxGrid::InsertRows ian 2 4,202 Aug-03-2017, 01:04 PM
Last Post: ian

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020