Search Results

Showing results 1 to 16 of 16
Search took 0.01 seconds.
Search: Posts Made By: snippsat
Forum: Python 6 Days Ago
Replies: 9
Solved: IDE for PyQt..
Views: 310
Posted By snippsat
You can use what ide editor you want, whish gui toolkit you use dos have little impact.

Pyscipter is good.
http://code.google.com/p/pyscripter/

I use komodo ide,and pyscripter for python 3.x...
Forum: Python 11 Days Ago
Replies: 8
Views: 272
Posted By snippsat
As Mathhax0r take upp your code is really not god at all it`s a big mess.
I think helping you now is difficult because of your code design.

Never use global variabels like this, or at all.
The...
Forum: Python 16 Days Ago
Replies: 11
Views: 457
Posted By snippsat
It`s not the best example of python class masterofpuppets.
You put in lot effort to help wish is fine.


Python is not java,it`s a lot better:cool:...
Forum: Python 25 Days Ago
Replies: 7
Views: 249
Posted By snippsat
One more,now start to think how to put this together.

>>> count = 0
>>> a = 55
>>> if a % 2 == 1:
count += 1
print 'odd', count

else:
print 'even'
Forum: Python 25 Days Ago
Replies: 7
Views: 249
Posted By snippsat
You should try to post some code yourself.

Can give you some tips.
>>> for i in range(0,7):
a = random.randint(0,100)
print a

79
21
69
Forum: Python 26 Days Ago
Replies: 14
Solved: palindrome
Views: 400
Posted By snippsat
>>> def is_palindrome(s):
... return s.lower() == s[::-1].lower()
...
>>> is_palindrome('test')
False
>>> is_palindrome('racecar')
True
>>> is_palindrome('RACECAR')
True
Forum: Python 28 Days Ago
Replies: 2
Views: 179
Posted By snippsat
Lets break it down.

IDLE 2.6.2
>>> a = ['Mary', 'had', 'a', 'little', 'lamb']
>>> for i in a:
print i

Mary
had
a
Forum: Python 30 Days Ago
Replies: 6
Solved: Using Functions
Views: 229
Posted By snippsat
Think maybe you are confused about calling a function and calling a method.

def my_func(name, greeting = 'Hello'):
print '%s, %s' % (greeting, name)

#Call a function
my_func('tom') ...
Forum: Python 34 Days Ago
Replies: 7
Views: 451
Posted By snippsat
Vegaseat gave you an answer in your own post last time.
http://www.daniweb.com/forums/thread224869.html&highlight=pymailer&page=5

I have used py2exe and wxpython many times it`s works fine....
Forum: Python Oct 24th, 2009
Replies: 6
Views: 301
Posted By snippsat
It easier to help if you post some code and explain what the problem is.
Forum: Python Oct 23rd, 2009
Replies: 7
Views: 285
Posted By snippsat
>>> class Stuff:
def __init__(self):
self.a = 0.02


>>> x = Stuff
>>> x
<class __main__.Stuff at 0x012007E0>
>>> # you are not instance the class
>>> x = Stuff()
Forum: Python Oct 17th, 2009
Replies: 8
Views: 292
Posted By snippsat
You should try to put some code together.

Look at this,and you should figure how to set opp your variables.
IDLE 2.6.2
>>> for i in range(1, 20, 3):
print i #print (i) for python 3
1
4...
Forum: Python Oct 8th, 2009
Replies: 2
Views: 236
Posted By snippsat
So why are you posting java code here?
Forum: Python Oct 4th, 2009
Replies: 12
Views: 384
Posted By snippsat
Dont ever do that.
>>> input = 'hi'
>>> input
'hi'
>>> dir(input)
['__add__', '__class__', '__contains__', '__delattr__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__',...
Forum: Python Oct 1st, 2009
Replies: 4
Views: 258
Posted By snippsat
indentations is 4 spaces,it work with 2 and 8 but never ever us anything else than 4.

A simple fix move line 8 so it get input from loop.
Remove set
import sys
result = []
f =...
Forum: Python Aug 21st, 2009
Replies: 3
Solved: Opening files
Views: 301
Posted By snippsat
If you want to open notepad.
You can use the os module.

import os
os.system('start notepad.exe')

#Open a webpage
os.system('start iexplore.exe http://www.google.com')
Showing results 1 to 16 of 16

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC