def RefreshSafebox(self):
getItemID=safebox.GetItemID
getItemCount=safebox.GetItemCount
setItemID=self.wndItem.SetItemSlot
for i in xrange(safebox.SAFEBOX_PAGE_SIZE):
slotIndex = self.__LocalPosToGlobalPos(i)
itemCount = getItemCount(slotIndex)
if itemCount <= 1:
itemCount = 0
setItemID(i, getItemID(slotIndex), itemCount)
self.wndItem.RefreshSlot()#Bunun Altina
self.RefreshValue()#Bu Sekilde Ekle