Forum: Python Jan 22nd, 2008 |
| Replies: 2 Views: 1,529 No problem. I solved it. I don't remember the solution though, but What I did is that I put a connect function at the beginning of the app, and a disconnect one with the atexit. That solved my... |
Forum: Python Jan 21st, 2008 |
| Replies: 6 Views: 2,461 |
Forum: Python Jan 20th, 2008 |
| Replies: 2 Views: 3,769 Well, I already solved it. It was because I called a ftp close(), so when I tried to connect again, it couldn't be done (it says in the wiki of ftplib). So, I eliminated all ftp.close() and added one... |
Forum: Python Jan 19th, 2008 |
| Replies: 2 Views: 3,769 I get this error when uploading a file with the ftplib via storbinary method after retrieving a file via retr method.
Why does it happen and how can I fix it? |
Forum: Python Jan 19th, 2008 |
| Replies: 6 Views: 2,461 I'm just saying like a sample function, but my problem is that if I put event_obj, they ask me for an extra argument, but If I don't put it, then the function will run automatically at the beginning.... |
Forum: Python Jan 19th, 2008 |
| Replies: 6 Views: 2,461 Well, now it all works perfectly. Thanks.
New problem:
I have a function in the scripts file that requires an argument (string), So if I write it like this (in the scripts.py file)
def... |
Forum: Python Jan 19th, 2008 |
| Replies: 8 Views: 1,027 Why bad post? I told him how to get the distance between the two corners!? Its the hipothenuse man, thats the distance he wants. Don't blame me for not knowing the exact name of the formula, I study... |
Forum: Python Jan 19th, 2008 |
| Replies: 8 Views: 1,027 |
Forum: Python Jan 19th, 2008 |
| Replies: 8 Views: 1,027 That's pithagoras i think.
You need the width or square and height. Also the starting points (corner square drawed from)
Then you do an equation:
width**2 + height**2 = distanceBetweenPonts**2 |
Forum: Python Jan 19th, 2008 |
| Replies: 9 Views: 2,225 Yes. There's a tool called py2exe. Here is the link:
http://www.py2exe.org/
It can also compile resource files in the same exe, to keep it clean |
Forum: Python Jan 19th, 2008 |
| Replies: 9 Views: 2,225 Yes. There's a tool called py2exe. Here is the link:
http://www.py2exe.org/
It can also compile resource files in the same exe, to keep it clean |
Forum: Python Jan 19th, 2008 |
| Replies: 6 Views: 2,461 Hi. I would like to know how to get the position of the cursor (blinking line in any text control) to insert there a string.
I would also like to know how to get the value of a text widget and... |
Forum: Python Jan 19th, 2008 |
| Replies: 2 Views: 1,529 Problem: I keep getting this error when I press the button to trigger Publish from 2nd time and on.
Error:
AttributeError: 'NoneType' has no attribute 'sendall'
The error is caused basically... |
Forum: Python Jan 19th, 2008 |
| Replies: 4 Views: 1,465 Thank you very much! This was just what I was looking for in order to call a function from a button! |
Forum: Python Nov 17th, 2007 |
| Replies: 2 Views: 1,489 Oh it ran! thank you!
But what I want is to put a textbox where you can type in something instead of fum, for instance. In other words, you type something in the textbox, click a button, and the... |
Forum: Python Nov 16th, 2007 |
| Replies: 2 Views: 1,489 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
print... |
Forum: Python Nov 16th, 2007 |
| Replies: 4 Views: 1,585 Well, I read something about wxPython and I guess you can do it by
(for a button)
self.buttonName.Bind(wx.EVT_BUTTON, self.buttonNameClick)
Where buttonName is the button's name, and... |
Forum: Python Nov 16th, 2007 |
| Replies: 1 Views: 13,094 how do I run a wxPython .py file? |
Forum: Python Nov 7th, 2007 |
| Replies: 4 Views: 1,585 What I need is to get the content of the textbox with the click of the button.
I dont know what do you mean with the palette. All I know is that iam using FarPy GUI Editor |
Forum: Python Nov 7th, 2007 |
| Replies: 4 Views: 1,585 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:
def... |