15,175 Topics

Member Avatar for
Member Avatar for TheNational22

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 …

Member Avatar for TheNational22
0
216
Member Avatar for paskari

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 …

0
32
Member Avatar for dinilkarun

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

Member Avatar for dinilkarun
0
127
Member Avatar for The_Bear

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 …

Member Avatar for Stefano Mtangoo
0
180
Member Avatar for dinilkarun

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

Member Avatar for dinilkarun
0
159
Member Avatar for ihatehippies

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 …

Member Avatar for Gribouillis
0
129
Member Avatar for Daiosmith

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 …

Member Avatar for shadwickman
0
108
Member Avatar for mhangman

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 …

Member Avatar for Stefano Mtangoo
0
84
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
180
Member Avatar for Clipper34

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 …

Member Avatar for Stefano Mtangoo
0
102
Member Avatar for danizzil14

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 …

Member Avatar for Gribouillis
0
209
Member Avatar for A no-name-moose

[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 …

Member Avatar for A no-name-moose
0
180
Member Avatar for dinilkarun

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 …

0
48
Member Avatar for anubisbe

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 …

0
43
Member Avatar for defience

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: …

Member Avatar for defience
0
95
Member Avatar for TheNational22

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?

Member Avatar for sneekula
0
153
Member Avatar for TheNational22

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 = …

Member Avatar for sneekula
0
124
Member Avatar for implor

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?

Member Avatar for Gribouillis
0
105
Member Avatar for thane33

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 …

Member Avatar for sneekula
0
138
Member Avatar for gracc

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. …

Member Avatar for gracc
0
82
Member Avatar for mruane

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 …

Member Avatar for Gribouillis
0
184
Member Avatar for resnostyle

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 …

Member Avatar for peter_budo
0
36
Member Avatar for ashli

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 …

0
33
Member Avatar for TheNational22

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 …

Member Avatar for woooee
0
88
Member Avatar for tb808kid

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 …

Member Avatar for tb808kid
0
127
Member Avatar for blackcorner

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 …

Member Avatar for ZZucker
0
210
Member Avatar for paferlini

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...

Member Avatar for jice
0
90
Member Avatar for Briz

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 …

Member Avatar for Freaky_Chris
0
189
Member Avatar for nealpcarpenter

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 …

Member Avatar for Freaky_Chris
0
216
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
3K

The End.