SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def RefreshGrid(self):
  2.     self.GetView()
  3.     # Retrieve Data and populate the grid
  4.     workdata = database.view_work_rows(self.sq,self.cid)
  5.     if workdata != None:
  6.         for x in range(len(workdata)):
  7.             for y in range(7):
  8.                 row = workdata[x]
  9.                 cell = row[y]
  10.                 self.grid_work.SetCellValue(x, y, str(cell))
  11.                 renderer = gridlib.GridCellAutoWrapStringRenderer()
  12.                 self.grid_work.SetCellRenderer(x,y,renderer )
  13.                 self.grid_work.AutoSizeRow(x, setAsMin=True)
  14.                 self.grid_work.ForceRefresh()
  15.         self.m_panel1.Layout()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top