Forum: Python 5 Days Ago |
| Replies: 12 Views: 313 |
Forum: Python 6 Days Ago |
| Replies: 12 Views: 313 I see,
but I suggest you download it somewhere, check integrity of file and if all is well replacing files with updated. I guess your files will get corrupted if urllib2 fails while updating |
Forum: Python 6 Days Ago |
| Replies: 12 Views: 313 As I see it, it is a bit complex for the task
you could put a text with three lines
let say this is a server text (serv.txt)
Then use urllib2 to retrieve that data and update your program. You... |
Forum: Python 6 Days Ago |
| Replies: 12 Views: 313 Here are my 2cents:
1.Have two textfiles (or whatever) in your server as well as on app
2. app.txt stores current version, last updated, update interval
3. serv.txt stores latest version and... |
Forum: Python 6 Days Ago |
| Replies: 10 Views: 469 It is LEGAL to ask for starting point, or for PROBLEM in coding But it drives me bananas someone wants his/her homework done. Oh! Why did you go to college/School then?? :lol: |
Forum: Python 8 Days Ago |
| Replies: 9 Views: 338 Have you checked Wing IDE yet?
Eric is most of the time associated with PyQT. It is made by It! |
Forum: Python 14 Days Ago |
| Replies: 2 Views: 424 GUI or Console?
If GUI which one? In wxPython, wx.ALIGN_CENTER would do the Job |
Forum: Python 14 Days Ago |
| Replies: 11 Views: 327 your current code? Please post it! |
Forum: Python 14 Days Ago |
| Replies: 11 Views: 327 Oops!
Multiple Post :cry: |
Forum: Python 14 Days Ago |
| Replies: 11 Views: 327 Here is a tip:
Before the for Loop
>> readlines
Then loop into all lines using for loop
>> replace each occurrence of dot with space (or whatever you like)
>> write it to the new file
Here is... |
Forum: Python 14 Days Ago |
| Replies: 5 Views: 261 Try this and hack it!
j = 0
for i in range(2, 9):
j = pow(i, 2)+j
print "The Final result is %d" %(j, )
BTW this is Python 2.x |
Forum: Python 14 Days Ago |
| Replies: 5 Views: 261 Try this and hack it!
j = 0
for i in range(2, 9):
j = pow(i, 2)+j
print "The Final result is %d" %(j, )
BTW this is Python 2.x |
Forum: Python 23 Days Ago |
| Replies: 5 Views: 428 http://people.csail.mit.edu/hubert/pyaudio/ |
Forum: Python Oct 16th, 2009 |
| Replies: 3 Views: 249 I don't know but If you can mess with tasklist and subprocess module (for XP/VISTA). This is purely untested as I'm not sure if tasklist returns anything! |
Forum: Python Oct 15th, 2009 |
| Replies: 4 Views: 407 Also what Data type of those variables?
If they are numeric, then Just save them as strings. Then retrieve them and use int() or float() to convert them back o numerical values |
Forum: Python Oct 13th, 2009 |
| Replies: 18 Views: 624 replace fname throughout with self.fname
That is because self.fname is accessible throughout the class
try and see what happens |
Forum: Python Oct 13th, 2009 |
| Replies: 18 Views: 624 replace fname throughout with self.fname
That is because self.fname is accessible throughout the class
try and see what happens |
Forum: Python Oct 12th, 2009 |
| Replies: 18 Views: 624 There you are! He is trying to call self.database which is'nt defined anywhere. This should at least work |
Forum: Python Oct 11th, 2009 |
| Replies: 18 Views: 624 where do you get self.database?
I cannot see it in this code either! |
Forum: Python Oct 11th, 2009 |
| Replies: 18 Views: 624 I cannot read your mind but I think the line missing is :
self.database = connection.cursor()
Also I see in line 76
"self.connection.commit()" but I cannot see where self.connection is defined. |
Forum: Python Oct 7th, 2009 |
| Replies: 45 Views: 2,725 Do you you code setup.py by yourself?
If yes, Andrea Gavana have saved you alot of pain by making front end (GUI) for py2exe. It is called GUI2exe
Get It here:
http://code.google.com/p/gui2exe/
I... |
Forum: Python Sep 27th, 2009 |
| Replies: 3 Views: 269 What version of Python do you have? |
Forum: Python Sep 27th, 2009 |
| Replies: 7 Views: 370 do us a favor and mark it solved :) |
Forum: Python Sep 23rd, 2009 |
| Replies: 7 Views: 370 Have you tried andrea gavana's gui2exe? It have many options that comes from py2exe. It have also other 'packers' options.
Check if it can solve your problem
www.code.google.com/p/gui2exe/ |
Forum: Python Sep 22nd, 2009 |
| Replies: 12 Views: 424 That's where sockets comes in MHO.
You will use to send data to the server and then there will be a thread opened to server to save each query. So theoretically this is what I would do :
1. Connect... |
Forum: Python Sep 22nd, 2009 |
| Replies: 14 Views: 564 try learning by dividing the issues at hand using functions:
1.Function that Gets numbers entered by the userand first ask the user how many numbers there are.
2. Find average should always be a... |
Forum: Python Sep 22nd, 2009 |
| Replies: 14 Views: 564 try learning by dividing the issues at hand using functions:
1.Function that Gets numbers entered by the userand first ask the user how many numbers there are.
2. Find average should always be a... |
Forum: Python Sep 22nd, 2009 |
| Replies: 12 Views: 424 As jlm699 said, Postgresql is good but isn't the only one.
You can go with mysql plus mysql-python.
I have read yahoo! and many other big companies uses mysql(not sure if it is with Python or PHP)... |
Forum: Python Sep 19th, 2009 |
| Replies: 16 Views: 548 I was once a fond of global variables as "child" programmer.
As I went on coding, things turned harsh on me. Thanks God I then learned OOP. In OOP, you do alot of stuffs without global variable.
I... |
Forum: Python Sep 19th, 2009 |
| Replies: 7 Views: 345 Alternatively you can use placeholder (same Snee's example)
#Convert C to F
def Tc_to_Tf ():
Tc = input ("What is the Celsius Temperature ? " )
Tf = 9.0/5.0 * Tc + 32
return Tf... |
Forum: Python Aug 28th, 2009 |
| Replies: 5 Views: 372 I was about to say that this method might be efficient. Ooh! It have bad pitfalls I will stick with import and import as |
Forum: Python Aug 26th, 2009 |
| Replies: 10 Views: 872 if it was windows, I could use the system's taskkill with switches /f
here is completely untested example.
This will close any running instance of firefox :)
Not sure about linux. I buried it long... |
Forum: Python Aug 24th, 2009 |
| Replies: 8 Views: 481 above the box you typed are blue words "MARK SOLVED"
Just click that link and all is done |
Forum: Python Aug 21st, 2009 |
| Replies: 4 Views: 280 HAL is Hardware Abstraction Layer. It just hides the implementation of hardware and remove alot of pains for you to interact with individual hardware
... |
Forum: Python Aug 20th, 2009 |
| Replies: 8 Views: 481 Do us a favor,
Mark thread solved. It is yet another good behaviour :D |
Forum: Python Aug 17th, 2009 |
| Replies: 5 Views: 304 IDLE have been reported to be troublesome, especially in GUI apps
Just check for modified version that can be downloaded at www.vpython.org |
Forum: Python Aug 17th, 2009 |
| Replies: 8 Views: 481 for more info just perruzzi here at wikipedia
http://en.wikipedia.org/wiki/Application_programming_interface
Loong explanations that will take you up and running :) |
Forum: Python Aug 10th, 2009 |
| Replies: 8 Views: 356 why not start with http://wiki.python.org/moin/BeginnersGuide
then move to:
http://docs.python.org/tutorial/
from there you can start flying for more :) |
Forum: Python Aug 5th, 2009 |
| Replies: 7 Views: 436 Wing IDE is written in PyGTK
I would suggest wxPython, for easy learning curve (to my experience). Why? Because I grasped the basics even before I could be fluent in Python. I almost learned them... |
Forum: Python Aug 4th, 2009 |
| Replies: 12 Views: 629 Have you tried VIDLE
http://vpython.org/vidle/index.html |