Re: [Tutor] using dynamic import statements

2012-07-09 Thread ankur ~ अंकुर
; \-\#\$\*\@\!\%\^\&]').search): > NameError: name 're' is not defined > > Is is possible to do what I am trying to do, or am I doing something wrong? > > Thanks > > ___ > Tutor maillist - Tutor@python.org > To

[Tutor] Query with SOAP request generation, which other modules can be used.

2012-05-22 Thread ankur ~ अंकुर
soap ( http://code.google.com/p/pysimplesoap/) module for this. The current python code is attached. But we are not able to pass the custom xmlns ( for bil and for com - the very first line ) with pysimplesoap module. *Any idea which other module we have to explore for generating the SOAP r

Re: [Tutor] Delay Between iterations

2012-01-12 Thread ANKUR AGGARWAL
es.add(bullet) allSprites.clear(screen,background) allSprites.update() allSprites.draw(screen) pygame.display.flip() if __name__=='__main__': main() On Thu, Jan 12, 2012 at 11:01 PM, ANKUR AGGARWAL wrote: > import pygame > from p

[Tutor] Delay Between iterations

2012-01-12 Thread ANKUR AGGARWAL
n__': main() I was trying to make shooting game. whenever I press the space key bullet object is called (bold code) . I want delay between iterations to produce the gap between the bullets.Tried the time.wait() but its working. Any Ideas?? Thanks In Advance Regards Ankur Aggarwal

[Tutor] Continuous Shooting

2012-01-12 Thread ANKUR AGGARWAL
aw(screen) pygame.display.flip() if __name__=='__main__': main() Thanks in advance :) Regards Ankur Aggarwal <><>import pygame from pygame.locals import * import random pygame.init() screen=pygame.display.set_mode((640,480),0,24) pygame.display.set_caption(&q

[Tutor] Github Pygame Example Repository

2011-12-17 Thread ANKUR AGGARWAL
/ . Suggestions and feedback would be great. Looking for contribution too :) Regards Ankur Aggarwal ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Store the output of os.system

2011-08-21 Thread ANKUR AGGARWAL
ow to store the output of a terminal or show the output in a GUI in python?? Thanks in advance. Ankur Aggarwal ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Algorithm for sequence matching

2011-07-02 Thread ANKUR AGGARWAL
iled to do so. Say A=[11,23,45,21,63,56,78,32] B=[56,78,11,23,45,21,111,234,56543] There are two similar sequence matching over here [11,23] and [23,45,21] i want to display second sequence because its larger in number. Plz help Thanks in Advance :) Ankur Aggarwal __

[Tutor] Hungry Snake now on Softpedia

2011-05-14 Thread ANKUR AGGARWAL
Game Links - http://code.google.com/p/hungry-snakes/ , http://mac.softpedia.com/get/Games/Hungry-Snake.shtml Certificate Link - http://mac.softpedia.com/progClean/Hungry-Snake-Clean-98721.html Thanks Ankur Aggarwal ___ Tutor maillist - Tutor@python.org To u

[Tutor] 3 Level Snake Game Made using Pygame API

2011-05-11 Thread ANKUR AGGARWAL
the three levels and "hungry.py" to play the basic version. Releasing this under GPLv3 :):) Try it out and feedback would be gr8. Here's the download link http://code.google.com/p/hungry-snakes/downloads/list Thanks Ankur Aggarwal ___ Tut

[Tutor] First Game Attempt

2011-04-18 Thread ANKUR AGGARWAL
Hey I was reading Pygame API for a month and made out a very basic ,small game named as "Hungry Snake" as practice. Want to share out the code with uou guys. Here's the link http://code.google.com/p/hungry-snakes/downloads/list Thanks

[Tutor] Recommendations required

2011-04-04 Thread ANKUR AGGARWAL
Hey I am reading pygame module and experimenting with it in small codes too . I want your help. I want you to recommend the games ,beginner of this module should try to develop as a practice or so. Thanks Ankur Aggarwal ___ Tutor maillist - Tutor

[Tutor] Difference

2011-03-20 Thread ANKUR AGGARWAL
Hey want to know whats the difference between the pygame.display.update() and pygame.display.flip() An explanation with the example would be grea. Thanks In Advance Ankur Aggarwal ___ Tutor maillist - Tutor@python.org To unsubscribe or change

[Tutor] books Recommendation

2011-03-18 Thread ANKUR AGGARWAL
Any good ebooks or printed books to get started with the Django framework and web based python?? Ankur Aggarwal ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Recommendation for Pygame

2011-03-01 Thread ANKUR AGGARWAL
Hey Any good recommendation (ebook,links,videos,Live Example) to get started with the pygame api. I am totally new to pygame. Thanks in advance. Waiting for the suggestions :):) Ankur Aggarwal ___ Tutor maillist - Tutor@python.org To unsubscribe or

Re: [Tutor] Update a button content on click

2011-02-15 Thread ANKUR AGGARWAL
t;) > > b1=Button(root,text="",image=None,command=ok) > b1.grid() > > root.mainloop() > # > > Which works perfectly for me. > What happens for you? > Do you get any error messages? > > Alan Gauld > Author of the Learn To Program w

Re: [Tutor] Update a button content on click

2011-02-15 Thread ANKUR AGGARWAL
,command=ok) b1.grid() On Tue, Feb 15, 2011 at 10:34 PM, ANKUR AGGARWAL wrote: > from Tkinter import * > root=Tk() > > photo=PhotoImage(file="Cross.gif") > def ok(): > b1["image"]=photo > > b1=Button(root,text="",image=None,command=ok) > b1.

Re: [Tutor] Update a button content on click

2011-02-15 Thread ANKUR AGGARWAL
from Tkinter import * root=Tk() photo=PhotoImage(file="Cross.gif") def ok(): b1["image"]=photo b1=Button(root,text="",image=None,command=ok) b1.grid() root.mainloop() Here's my code . Not getting the desired output On Tue, Feb 15, 2011 at 10:26 PM, ALAN GAULD wrote: > > b1=button(root,image=N

Re: [Tutor] Update a button content on click

2011-02-15 Thread ANKUR AGGARWAL
almost to zero size. I want to retain the height=4,width=4 along with the image after clicking on the button. Image size is smaller than the button size. On Tue, Feb 15, 2011 at 5:58 PM, Alan Gauld wrote: > > "ANKUR AGGARWAL" wrote > > > I am looking for a method using

[Tutor] Update a button content on click

2011-02-15 Thread ANKUR AGGARWAL
"hi". I tried it through event handling but failed to do so. Any help would be appreciated. Thanks In Advance Ankur Aggarwal ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Alternate button hit problem in tkinter

2011-02-01 Thread ANKUR AGGARWAL
pick. i tried to think upon this very much but unable to finally come up with any idea. Cn anyone suggest me a way out. Thanks in Advance. Ankur Aggarwal ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http

[Tutor] Checkbox problem in Tkinter

2011-01-09 Thread ANKUR AGGARWAL
ives me the desired result but in string case i am unable to do so as checkbox is invisible type. I am using Python 2.6 Thanks In Advance Ankur Aggarwal ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] input problem

2010-09-13 Thread ANKUR AGGARWAL
Suppose i am taking input or various variables like a=raw_input("...") //hello b=raw_input("")//hi c=raw_input("...")//hello d=raw_input("..")//hello but i want to run a common function when input is hello so instead of if a=="hello": fun() then aga

[Tutor] check the terminal keyword

2010-08-21 Thread ANKUR AGGARWAL
i m making a app in which i launch application using os.system("input from user"). I want to check whether the input entered by the user matches with the exact keyword in terminal or not. like i want to launch vlc so user should provide me input as " vlc" in order to launch the app just like he did

[Tutor] string conversion according to the terminal

2010-08-12 Thread ANKUR AGGARWAL
Hey- suppose we have a file name-"my file number" if we want to execute it into the terminal it would be like - my\ file\ number so wondering is there any one in the python that change the enter string into the terminal string one- like if user enter the file name with path- "my file number". i wa

[Tutor] string editing

2010-07-31 Thread ANKUR AGGARWAL
hey although i knw string are mutable but i want to know if there is anyway to add in the string. like i m wrking on the tool and want to run the input from the user in the terminal like user makes input "this is ankur" and i want it like "this\ is\ ankur" ??

[Tutor] hot to run python script at the startup

2010-07-24 Thread ANKUR AGGARWAL
hey fellas i have a script abc.py with me i want to execute it as soon as i my linux gets start after entering username and password thing (desktop thing) how can i do that??? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscripti

[Tutor] can i run the last saved input again

2010-07-23 Thread ANKUR AGGARWAL
hey this is a crazy question but i want to know it.. suppose i have this code a=raw_input("enter the string :") print a then i type python prog.py output: enter the string:hello hello now i want to ask is there's any way that python remembers the input i gave it to last time and it just gi

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] (no subject)

2010-07-22 Thread ankur
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] how i can change two lists into one directory

2010-07-22 Thread ANKUR AGGARWAL
hey i have just started making a app using python and just gt a problem.. i have two list a=["x","z"] b=[1,2] i want to make a directory like this c={"x":1,"z":2} is it possible i mean i tried it using loops and all but i cant append a directory so i m unable to do this... plz tell me if th