Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/j/e/Jeopy-HEAD/Gui.py   Jeopy(Download)
from copy import deepcopy
 
from ButtonGridWidget import ButtonGrid
from QuestionDisplayWidget import QuestionDisplay
 
		self.height = height
 
		w = ButtonGrid(self.getRound(), width = self.width, height = self.height)
		self.getStack().addWidget(w) # the ButtonGrid will always have index 0
 
	def updateGrid(self):
		self.log('updating grid')
		oldGrid = self.getStack().removeWidget(self.getStack().widget(0)) # the old grid is removed from the QStackedWidget ######
		self.getStack().insertWidget(0, ButtonGrid(self.getRound(), width = self.width, height = self.height))