python - wxpython refreshing images in wxpython staticbitmap -


i need help, refresh , change staticbitmap images in wxpython without overlaying onto each other, building slotmachine program in python have problem staticbitmap stacking on top of each other, whenever spin wheel of slotmachine display images... see image below,thanx in advance.

the screenshot here --> http://s2.postimg.org/434h21t2x/problem.png

wheel_faces = controller.show_wheel_faces()              image_list = {"cherry":"resources/cherry.png", "orange":"resources/orange.png",                           "7":"resources/seven.png", "coin":"resources/coin.png",                           "clown":"resources/clown.png", "apple":"resources/apple.png"}              if wheel_faces != []:                 #print wheel_faces                 wheel1 = wx.emptyimage()                 wheel1 = wx.image(image_list.get(wheel_faces[0]),  wx.bitmap_type_png).converttobitmap()                 wx.staticbitmap(self, -1, wheel1, pos=(135, 272))                   wheel2 = wx.image(image_list.get(wheel_faces[1]),  wx.bitmap_type_png).converttobitmap()                 wx.staticbitmap(self, -1, wheel2, pos=(276, 272))                  wheel3 = wx.image(image_list.get(wheel_faces[2]),  wx.bitmap_type_png).converttobitmap()                 wx.staticbitmap(self, -1, wheel3, pos=(415, 272))                 self.refresh()                  self.account_balance += int(controller.show_winnings())                  if controller.show_winnings() != 0:                     self.payout_label.setlabel(str(self.account_balance))                  self.spin_label.setlabel(str(controller.show_winnings()))                 #print controller.balance_manager()                 self.refresh() 


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -