15,181 Topics
| |
Hey guys, I was wondering if someone might be able to help a newbie out. I'm trying to write a program that randomly flashes either a .gif file on screen or nothing. Now, I've gotten that working but the trick is I want there to be a short gap between … | |
hi guys.. is it appropriate to use tkinter for traffic simulation where there is a lot of movement (rotation) of cars taking into consideration its speed? thanks.. | |
hi everyone i wanna create a class in tkinter but im finding it very difficult to begin it as im new to python. i want a class traffic light that will operate continuously (that is red to green to red.... ). thanks.. | |
Hello everyone ! I am a still a beginner in Python (and have no knowledge in other languages), and today I got a reaction from my script that I find unexpected. Here's the code: I want to use the buildOneCard function to create a card (a couple of values), by … | |
Hey boys I'm using python 2.5.2 when i try to import Tkinter it tells that it doesn't know it and suggests me to install the -tk pakage if your answers include installing pakages please tell how to find and install them thanks a lot Bye | |
Subprocess issues with platform independence Postby ajamin on Wed Oct 08, 2008 10:46 am I am writing a python script that will act as a wrapper for another program. The python script will provide the inputs for this program and will verify that the output is correct. The application runs … | |
I have a program that calls a couple of DOS commands, moves files, ZIPS them, and FTPs them to a server. When I test it in IDLE, works fine. I have tried to make into a EXE using pyInstaller and py2exe, both EXEs make the the program die immediatelt. Tried … | |
Hello, I originally posted this on another forum ([url]http://python-forum.org/pythonforum/viewtopic.php?f=4&t=9568&sid=e93069443775540ac112e9cf6a3c1e8b[/url]) so I hope you don't mind the repost. I developed a user interface with Glade, and used Gladex to compile the .glade file into a loadable .py file. The program works fine, but I'm having a hard time drawing anything in … | |
hi, I would like a alert message to pop up on a EVENT of Mouse click in the Custom tree control and CHECKLISTBOX. Please assist me capturing the MOUSE CLICK event and pop up the alert message or FRAME with message. Your response will be highly appreciated. Regards Dinil | |
Hey everyone, I'm a new python user. I'm running SuSe linux development 10. My problem is with importing files. Here is my file - it uses the myro library for robot programming. /dev/rfcomm0 is the name of #helloWorld.py from myro import * init("/dev/rfcomm0") def hello(): forward(.5,.5) stop() hello() --- From … | |
hi Friends, I have used sizers for one of my frame which has Checklist box. THe checklist box is not displayed at first but on slight resizing the Checklist box is displayed. Please assist in this regard. Regards Dinil | |
So I made this script call auto ascii encrypter and it basically goes character by character through a script and converts it to ascii numbers. It makes a new a script using the ascii numbers. But I get an error no matter how simple the script is. 'invalid syntax.' Heres … | |
Hi all, I have been having a problem for a little while with regards to strings. The problem is that i want to find two different words in a string then return the words between those 2 words. ie: If i had the string "The quick brown fox jumps over … | |
hi, im trying to write a macro script but i need help about to using buttons.(on keybord not another device) i can define a button(with "input" for numbers if am i not wrong?) but how can use that? i want to push that button not print it or add it … | |
Hello guys, I'm trying to make a program that will : at startup it will give you login Dialog which will connect to database. Then it will bring Main window displaying tables. Then I have Another dialog to do some editing of Tables. Here are my two Questions: Is it … | |
Hey guys, well how would you go about making a GUI, i've seen examples with Tkinter. But how would you place the button exactly where you want them. Also would you set an event for a button or field for example if the button is clicked it connects to a … | |
Ok, so from my last post, you might have figured that I'm making a coder/decoder package. Anyways, say I've got a string of letters that i want to decode, such as: AAAGGGCCC Which should produce: ACB Because a=aaa c=ggg and b=ccc Currently with my program, you have to input one … | |
[TEX]Note[/TEX]: I've been doing this only for practice and [TEX]NOT[/TEX] for practical reasons, as you can see the output isn't realy HangMan-like and any combination of the right letters will be accepted so please do NOT comment about the funcunallity of the code! if it [TEX]DOES[/TEX]seem nice to you then … | |
Hi, I have a Checklist box on a frame. On click on a button, I am disabling the Checklist box. self.chkLstBox.Enable(False) My purpose is to freeze the Check list box and only enable the scroll bars attached to the Check list box(Both vertical and horizontal). Presently the scroll bars also … | |
hey all, I have this script : (see below) it looks in a db for cpid (unique identifier) and gets the rest of the data out of my db, and creates then a user in a hosting platform, but now to finish the script I need to add to the … | |
Hi, I found this sudoku solver online and it works good but I was wondering how I could get the answer that's in matrix form, to also print out in a single comma-delimited line, instead of 9 rows of 9? [code] from copy import deepcopy class DeadEnd(Exception): pass class Matrix: … | |
I have a software that use command line arguments to create files. You go to the directory, type posidbfw /alt 1 1, it creates the files. I want to call this from one line. I was using subprocess.Popen, but it doesn't see the arguements, any help? | |
Trying to create a zip file with yesterdays date. I think I got everything, but I am getting module has no object attrib error. Any ideas? [code] import os import zipfile import datetime today = datetime.date.today() yesterday = (today + datetime.timedelta(days=-1)) file = zipfile.Zipfile("CT" + yesterday.strftime('%m%d%y') +".zip", "w") files = … | |
I'm working with some web stuff and my script is downloading files from the internet. but if a file is not available or very slow i want my script to continue with next file. how do I do that? | |
im sorry but i need help in plotting this graph on python, been doing it for the past 6hrs and i cannot generate the graph, would really really appreciate some help in it. [code=python] n=range(1,201,1) L=0.016 data=[] aetemplist=[] dxlist=[] ot=[] nlist=[] for i in n: etemp = finTempNum(i) ot.append(etemp) dx=L/i … | |
Hi guys, I've written a couple of program modules ,one main program that imports the other. The problem is when I run the imported module it's fine but on exiting it closes my main program with it. Both modules work ok otherwise, also I can run them individually as well. … | |
I have decided that a text adventure would be better for me to learn from, as a visual game is confusing to me still. So, I was reading Chris O'leary's post about his text adventure game, Advent House, and got many ideas from there. I want to perfect his battle … | |
Hello all, I am a recent member as many of you can tell. I do have one question tho. I was looking over the site and doesnt see a forum for python programming? Is it simply not popular enough, or has been shunned by the community? Or is it hidden … | |
Hey guys, I'm new to Python and I don't have much experience but I need to write a simple code that will generate four random points and four polygons and then find out if the points fall within the polygons. I know I need to use the random.random () function … | |
Wrote this script to send a zip file that gets created every day and sent to a FTP server. In line 16, getting a windows 183 error cannot create file that already exists. I am using os.rename, and it works if I run it stand alone. Any ideas? [code=python] import … |
The End.