Re:
This simple code shows how to write text with a given font, font size and color using the module pygame ... |
|
Re:
import sys i=0; def func1(i): print "i am in function func1" if i<5: i=i+1 func1(i) else: return return def main(): print "beginnning the function\n" func1(i) print "hello Daniweb" s='aman' print "hahha" main() it is giving me syntax error in print "hahha" statement. WHat is that ? According to me, it … |
|
Re:
how do you get it in pygame so that when you click on a rect it will reset the window but only when you click on that certain rect |
|
Re:
hey guys, girls, others. i have a pop down widget and one of the options in the pop down screen is "Exit" which means quit. I want to know the code for clicking that "Exit" option and then it Quiting the whole program. here is my code for the pop … |
|
Re:
I am doing my major work for SDD and i am making checkers, i have searched and tried many differnt solutions but nothing has worked, i am trying to make the window size set to 800x800 and have "Checkers" as a title and 4 buttons down the bottom, i would … |
|
Re:
Hi, I am a little newbie with python, more use of C++ The goal is to search a specifed filename e trought multiple directories. After finding the file, search trough it's content some description on some strings and write out the description on a xml file. So far i manage … |
|
Re:
I've seen a program called Devcon ([url]http://en.kioskea.net/faq/sujet-1886-enable-disable-a-device-from-the-command-line[/url]) used for enabling and disabling hardware devices. I want to do the same hopefully with python. I want to turn the internet connection off with a script. I can already do it with popen('ipconfig /release') but I want something more robust. Is there … |
|
Re:
I am writing a pygame program that has a moving background which is a sprite. I was wondering if/how you can make sprites appear on top of others (some kind of priority in what appears on top of what). I know the order they appear on top of one another … |
|
Re:
I can't believe I am getting this error again and again .... Here is my class: [CODE]class LANGUAGE: def __init__(self, val): self.val = val def Set(self): return self.val [/CODE] Here is the function call: [CODE]if text in translate._languages: msg = "You have chosen the " + translate._languages[text] global NewLang newlang … |
|
Re:
Ok, uhh... I need help. My loop to keep the program running or to quit isn't working right. Can somebody help me figure it out? I tried a couple of methods, and they didn't work. Do anybody have any idea? By the way, this is for a blood drive program … |
|
Re:
Here we apply the module difflib to compare two texts line by line and show the lines of the first text that are different from the second text. |
|
Re:
[CODE]element = {'H': 1, 'N': 6, 'F': 7, 'Cl': 7} i = input("Enter: ") dots = '*' totalDots = (dots * i)[/CODE] Enter: H Traceback (most recent call last): File "D:/Python26/lewisdot.py", line 4, in <module> i = input("Enter: ") File "<string>", line 1, in <module> NameError: name 'H' is not … |
|
Re:
hi everybody!!! I will really appreciate if somebody could help me.... we are working with c and python and the same time and it gets confusing sometimes... I need to write a program in python tha will receive a string and it will print only the number in the string … |
|
I cant get text working in my programs if I double click the icons in windows but it does work in the WinEditor. Why doesnt it work and what could I do to get text working wherever? |
|
Re:
First let me say I know absolutely nothing about Python. All I know for sure is that I own the PC game Vampire Bloodlines and I am getting a runtime error. I have researched online and have read that if you have an older version of Python the game will … |
0 Reputation Points
0 Endorsements
Ranked #13.9K
Ranked #2K