Search Results

Showing results 1 to 17 of 17
Search took 0.01 seconds.
Search: Posts Made By: snippsat ; Forum: Python and child forums
Forum: Python 5 Days Ago
Replies: 3
Solved: program help
Views: 212
Posted By snippsat
I have are hard time understand why instructors use outdatet module like graphics.

It has to be much better to learn student basic Tkinter(graphical user interface) or another GUI toolkit.
That...
Forum: Python 13 Days Ago
Replies: 9
Solved: IDE for PyQt..
Views: 404
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 18 Days Ago
Replies: 8
Views: 295
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 23 Days Ago
Replies: 11
Views: 480
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 32 Days Ago
Replies: 7
Views: 253
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 32 Days Ago
Replies: 7
Views: 253
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 33 Days Ago
Replies: 14
Solved: palindrome
Views: 415
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 Nov 1st, 2009
Replies: 2
Views: 182
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 Oct 30th, 2009
Replies: 6
Solved: Using Functions
Views: 241
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 Oct 26th, 2009
Replies: 7
Views: 496
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: 306
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: 290
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: 299
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: 239
Posted By snippsat
So why are you posting java code here?
Forum: Python Oct 4th, 2009
Replies: 12
Views: 391
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: 261
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: 308
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 17 of 17

 


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

©2003 - 2009 DaniWeb® LLC