Roving-Robots
currently working on the programming worker interface and working on the problems of the dockable/dragable code blocks.
current method of dockable items is thus:
def dragged(self,btn): print 'button dragged' d = dist(self.hub_rect,btn.rect)#find distance between midtop and midbottom print d if d < 15: btn.rect.midtop=self.hub_rect.midbottom
where "self.hub_rect" is my experimental dockable item, eventually to become the first seed code block.
next hurdle will be to have the buttons stack downwards, and also have them notice if a block already has a docked item (so that they don't try to stack)
to test this branch of code go to my github and clone the code, run menu.py using python 2.6 and pygame
1 Comment
Recommended Comments
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now