15,175 Topics
| |
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 … | |
This problem has been driving me crazy, I just can't seem to find anything in the Python docs. I've been working on a script, It connects to a remote server and downloads multiple RAR files as a "job", it then extracts them to the correct place. It works, but I … | |
Can anyone tell me if there is any function for replacing multiples substrings within a string. For instance we have this function call to replace multiple appearances of the same substring: [CODE=python] newLine = line.replace(';', '_') [/CODE] Here I replace all appearances of ';' with '_' But what I need … | |
Hey all! i need to write a tuple into a file.. it was to work something like this: ---- [ICODE]c.execute('select * from valores') for row in c: file1.write(row)[/ICODE] ----- i already tried to do str(row) and everything, but nothing seems to work... | |
Hey everyone, I have a project in which I need to program a Khepera robot too navigate through a maze and find a beacon on the first run. *On the second run it must go to the bacon via the shortest path. *The grid is a 4*3 (so i have … | |
Is this hard? I am introducing Python to my students and want to make a simple, interactive program that will, while it's running, 'listen' for any keyboard events. That is, I don't want to include an 'input' statement - that would pause execution till someone answered. I just want it … | |
Can somebody tell me how to do bolding and Italicizing plus underlining I have just started getting serious after long time "milk drinking", now I want to eat solid food. Thanks all, Steve [ICODE] import wx ID_EXIT =100 ID_BOLD = 101 ID_ITALIC = 102 ID_UNDERLINE = 103 ID_TEXT = 104 … |
The End.