@je3f0o: There is a file called .vimrc in your home dir (if not, create one). This file will run every time you start vim. Put your tabspace=4 and other settings in there.
@Syl4r93: I'm posting this here, But I'll also message you, because the code may look weird here.
while 1: for event in pygame.event.get(): if event.type == MOUSEBUTTONDOWN and pygame.mouse.get_pressed()[0]: print "Left click" elif event.type == MOUSEBUTTONDOWN and pygame.mouse.get_pressed()[1]: print "center click" elif event.type == MOUSEBUTTONDOWN and pygame.mouse.get_pressed()[2]: print "Right Click"
Thanks !
I have a question. How did you save your vim setting tabspace=4 ?
je3f0o 4 months ago in playlist PyGame
@je3f0o: There is a file called .vimrc in your home dir (if not, create one). This file will run every time you start vim. Put your tabspace=4 and other settings in there.
metalx1000 4 months ago
awesome tutorial, i am going to follow your tutorials. I am beginning a simple paint program project in python, so this is really helping me.
geothermalrobot 8 months ago
That's great! your tutorials are really helping me a lot! ...could you tell me please, how to detect wich mouse button is pressed??
Syl4r93 1 year ago
@Syl4r93: I'm posting this here, But I'll also message you, because the code may look weird here.
while 1: for event in pygame.event.get(): if event.type == MOUSEBUTTONDOWN and pygame.mouse.get_pressed()[0]: print "Left click" elif event.type == MOUSEBUTTONDOWN and pygame.mouse.get_pressed()[1]: print "center click" elif event.type == MOUSEBUTTONDOWN and pygame.mouse.get_pressed()[2]: print "Right Click"
metalx1000 1 year ago
This is pretty neat. gj Now how do we save these things?
t3hubern00b 1 year ago
@t3hubern00b: Watch My "pygame - part 10 - Screen Shots"
metalx1000 1 year ago
Comment removed
t3hubern00b 1 year ago
That was amazing! :D
librano 1 year ago
Very nice tutorial :D
Is the next telnet tutorial comming up soon?
skiller517 1 year ago