Skip to content

Commit

Permalink
Merge branch 'develProzor' into Labela
Browse files Browse the repository at this point in the history
  • Loading branch information
Pancake2608 committed Mar 29, 2024
2 parents 21afbf3 + 0d9da8d commit baa343b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ClassWindowMenager.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ def draw(self,screen):
prozor.draw(screen)
def check_click(self,x,y):
for i in range(len(self.prozori)-1,-1,-1):
print(i)
if(x>=self.prozori[i].x and x<=self.prozori[i].x+self.prozori[i].width) and (y>self.prozori[i].y and y<self.prozori[i].y+self.prozori[i].height):
self.prozori[i].click(x,y)
if self.prozori[i].lajsna.press==0:
self.remove_prozor(self.prozori[i])
pom=self.prozori[i]
for j in range(i+1,len(self.prozori)):
self.prozori[j-1]=self.prozori[j]
self.prozori[len(self.prozori)-1]=pom
break
def mouseup(self):
for prozor in self.prozori:
Expand Down

0 comments on commit baa343b

Please sign in to comment.