15,190 Topics
![]() | |
Hello. Beginner here so bear with me. I'm creating a game as a final project for my university but at the moment I'm stuck. I'm just wondering how you go about making buttons. In the code, I have created four rectangles which will eventually be able to be clicked on. … | |
Could you please help me / explain me how to create a four in a row game in python? Thanks! | |
So, I am slamming my head into my desk right now. I am trying to take a string containing unicode character codes and convert it to a python unicode string. I thought it would be simple, but I am having major issues. Any help would be greatly appreciated. This is … | |
I am trying to learn the Kexi database program, and am at the point of looking into scripting. I know this can be done using Python, but I can't find any tutorials or lessons on how to do this. In fact, I can't find much of anything relative to Kexi. … | |
Hi all, Is there a way to move the mouse pointer to a specific point? As opposite to GetPosition(), something like GetPosition maybe? THX [url]www.WhyUI.com[/url] | |
Hello, I am new to Python and would be verry happy if someone would give me the code for a function that yields all sublists of a list. I need it for later implemetation in C, where I have to do work on these sublists. I would need something like … | |
hai i am a new visiter of this site so i want to know,in what all applications we can use this softwere python,how it is differ from c,c++,java like things.will its performance is much different than all else | |
Hi, I've searched but i can't seem to find anything. I have a sudoku grid made by turtle graphics. But the thing is how do i input numbers and select squares? Select squares as in.. A6 or something like that. I know its not turtle.write(whatever), that would just take way … | |
hi .i am bond .I am new to Python and I am trying to write an updated version 2007 of Pacman for my program. I am in dire need of help. Thanks! | |
When I execute the program (just to test my progress), it returns an infinite loop (i think of main() or enter(). I am posting the entire source code here, maybe somebody could help me better organize it. In hte future, I would like to add a save feature. This is … | |
I am new to Python and I am trying to write an updated version 2007 of Pacman for my program. I am in dire need of help. Thanks! Computer Nerd | |
Hello Everyone, In my application i need to select a file using open dialog box. And then i dont need to open the file. I just need to display the name of the selected file in a text control. And then open the file in later part of the program. … | |
Hi... I have this addLink button, that calls the addLinkClick function. content is a multiline text control. The following are variables: href,target,linkName I want this button to print [CODE] print "<a href='"+href+"' target='"+target+"'>"+linkName+"</a>" [/CODE] into the content control. How do I do this? Also...does anybody now how to run a … | |
hello, I have a string s which contains the certain line drawing characters: '──────────────────────────────' (these are the characters being generated by pressing the keys alt+196) when i try to print the string 's' to a putty console using the code [CODE]print 's: %s' % s[/CODE] I do get the exact … | |
I'm trying to make the canvas (or window) created from the turtle module, but the code listed in the docs at python.org doesn't work. I've done some research online, and I keep coming across 'Tkinter', which is only confusing me further. I'm trying to make a soduko game, but first … | |
I have to do this project, The concept is quite simple (I think) but I have no Idea of how to accomplish it in python. What I have to do is make a date converter for Haab - Tzolkin Maya Calendar. It has to read Haab Date and return Tzolkin … | |
Hi. Iam making an app to write and append to an html document blog-type blocks. I have the GUI finished, but I need to fusion it with my script. Look at this snippet of my script: [CODE] def link(href,target,linkName): partA = "<a href='"+href+"' target='"+target+"'>"+linkName+"</a>" print partA [/CODE] Now, this is … | |
Hello,everybody! I write my first Python script in file [B]Fibonacci.py[/B] in Linux as the fallowing: [CODE]a,b = 0,1 while b < 10: print b a,b = b,a+b[/CODE] When I want to run it,I must input these command in the command line: > python Fibonacci.py I want to know what should … | |
Hi everyone, I'm a relative beginner in python looking for a bit of help on an error I get when running the script posted below. It is used to split data files in text mode. It runs through a list of files (using the glob module) and creates a number … | |
I'm having problems getting the MediaCtrl to display at a reasonable size with large videos. When I make it play one it instantly resizes itself to the size of the original video no matter what I set as it's maxsize, which often means that part of the window is off … | |
I'm curious why this bit of code doesn't work. When run it returns a blank line. Note: this is making use of a linux device file so it should not be expected to run properly on Windows. [CODE=python] #!/usr/bin/env python import os infile = os.open("/dev/zero", os.O_RDONLY) charout = os.read(infile,1) os.close(infile) … | |
Sorry...this turned out to be such a long post.:sweat: Hello. This was originally a problem I was facing with the user interface for my robot, but my latest post was never answered there. Right now I'm experimenting specifically with this problem: verbal raw input. I've posted this problem in another … | |
hi...i'm tryiing to make the picture gold.gif transparent so that i can make some animation on it.cn you please help me to make the picture transparent.thanks in advance import Tkinter from Tkconstants import * import tkMessageBox def window(tk): global photo #### SIC! frame=Tkinter.Frame(tk) frame.pack() canvas=Tkinter.Canvas(frame,bg ='white', width=500,height=500) canvas.pack() photo=Tkinter.PhotoImage(file="gold.gif") canvas.create_image(200, … | |
I am a python newbie and i have trouble with those 2 exercises: 1.A date of the form "8-MAR-85" includes the name of the month, which must be translated to a number. Create a dictionary suitable for decoding month names to numbers. I have to create a function which uses … | |
Here is my code, all I need help with is getting the text to display in a graphics window. I have tried several different ways and I'm not getting any errors either. I bolded the part that I'm having trouble with. The other ways I have tried have been pounded … | |
hello, I am very new to python scripting and would require some help. Thers a product called Ajaxterm which makes use of python scripts and Ajax that I am using. It's a web based unix terminal emulator. I have set this up to work correctly. But there are some unicode … | |
Hello All, I havn't been programming with python too long, but decided the best way to learn it would be to dive right in. Right now I have been taking snippets here and there along with modifying some code in between to create some programs. The one I am currently … | |
can you please tell me the code to make a picture transparent in python.thnx... if possible you give me the codes. thnx in advance | |
How do you compare two decimal numbers in python? | |
Hi, I have a question regard to assign the values to each memebrs of the class objects because I have a large list of class objects. Can I do the following? If not, how can I achieve the same thing? Thanks in advance. class person(): def __init__(self): self.name = ' … |
The End.