Forum: Python Oct 31st, 2008 |
| Replies: 4 Views: 425 Alternatively you could do this:
for swipeload in range (0, 15, 1):
exec('E'+str(swipeload)+'_Path = os.path.join("data","E"+str(swipeload)+".gif")')
exec('E'+str(swipeload)+' =... |
Forum: Python Oct 31st, 2008 |
| Replies: 7 Views: 542 The thing about outputting super/subscript in term is that it will vary from system to system. Experiment with the '\x##' replacing ## with any hex number from 01 to FF. Eventually you will find... |
Forum: Python Oct 31st, 2008 |
| Replies: 206 Views: 94,228 Why don't you post it in a new thread so that we don't muddy up the tutorial thread with random comments.
Editor: Thanks, this post has been moved to its own thread. |
Forum: Python Oct 30th, 2008 |
| Replies: 6 Views: 951 Where is data_file defined? |
Forum: Python Oct 30th, 2008 |
| Replies: 3 Views: 737 import wx
x = dir(wx)
for y in x:
if y.find('ID_')!=-1:
print y
output: |
Forum: Python Oct 30th, 2008 |
| Replies: 23 Views: 1,716 I think a better option might be to switch to pySonic
http://pysonic.sourceforge.net
the Song.userspeed() property in particular looks like what you would want |
Forum: Python Oct 30th, 2008 |
| Replies: 23 Views: 1,716 http://people.csail.mit.edu/hubert/pyaudio/ |
Forum: Python Oct 30th, 2008 |
| Replies: 10 Views: 1,001 take the following code as an example:
from Tkinter import *
root = Tk()
def test():
if (root.focus_displayof()==entry1):
print 'hello' |
Forum: Python Oct 30th, 2008 |
| Replies: 10 Views: 1,001 .focus_displayof()
not
.displayof() |
Forum: Python Oct 30th, 2008 |
| Replies: 7 Views: 542 Look here and see if it helps:
http://www.daniweb.com/forums/thread133360.html
if that isn't what you are looking for, maybe you can clarify what you are trying to do? is this going to be CLI... |
Forum: Python Oct 30th, 2008 |
| Replies: 8 Views: 8,272 If you are stuck on windows, check out Notepad++ |
Forum: Python Oct 30th, 2008 |
| Replies: 6 Views: 1,818 |
Forum: Python Oct 30th, 2008 |
| Replies: 6 Views: 1,818 It could be an issue with the python versions, but that isn't usually the error you get when that is the case. |
Forum: Python Oct 30th, 2008 |
| Replies: 6 Views: 1,818 try this before the import
import sys
sys.path.append("c:\Python\DLLs") |
Forum: Python Oct 30th, 2008 |
| Replies: 8 Views: 840 You, sir, just blew my mind.
Also, "Ternary" |
Forum: Python Oct 30th, 2008 |
| Replies: 8 Views: 840 yes, but because of the traverse(p->lokid); two lines into the function, it restarts itself over and over until the end when the fact that p is not defined forces a return. There is no way for it to... |
Forum: Python Oct 30th, 2008 |
| Replies: 8 Views: 840 So, looking at your translation, would you agree with me when I say this code is broken? |
Forum: Python Oct 29th, 2008 |
| Replies: 8 Views: 571 huh, just search for "class average" you'll find something to help you. |
Forum: Python Oct 29th, 2008 |
| Replies: 8 Views: 840 def traverse(p):
try:
p
except NameError:
traverse(p=lokid)
if (p==splitchar):
traverse(p=eqkid)
else:
print p
traverse(p=hikid) |
Forum: Python Oct 29th, 2008 |
| Replies: 8 Views: 571 look here to see how someone else did it.
http://www.daniweb.com/forums/thread66974.html&highlight=class+average |
Forum: Python Oct 29th, 2008 |
| Replies: 2 Views: 295 It sounds like you have your terms a little confused...
Actually, after reading that again... I tihnk you have me a little confused...
Maybe we will be able to help you better if you give us a... |
Forum: Python Oct 29th, 2008 |
| Replies: 21 Views: 1,601 Do you have python installed on your PC?
If so, and you are running windows, it should be as easy as double-clicking the file (assuming you gave it a .py extension)
if not, go to python.org... |
Forum: Python Oct 29th, 2008 |
| Replies: 3 Views: 366 picme3=(PhotoImage(file="table.gif"))
(I think (I) (Might) ((See) A Problem) (Here)
wait... maybe not... I'm so confused now... why do you have the extra ()? |
Forum: Networking Hardware Configuration Oct 29th, 2008 |
| Replies: 9 Views: 1,183 Usually that points to a software firewall issue. But you said you have disabled those.
If it isn't the firewall, then I'm stumped. |
Forum: Python Oct 29th, 2008 |
| Replies: 6 Views: 879 I just realized what you want
you want a new frame at the top of your program, above the other content...
I wish I new wxpython better, I don't use it honestly. Maybe someone else can show you... |
Forum: Python Oct 29th, 2008 |
| Replies: 6 Views: 879 My suggestion would be to abandon WxPython and use pygame instead. It is much better suited for this type of stuff.
Other than suggestiong you switch to PyGame, I am not sure exactly what you are... |
Forum: Python Oct 29th, 2008 |
| Replies: 10 Views: 1,001 My suggestion would be to look at focus_displayof() instead of focus_get() |
Forum: Project Partners Wanted Oct 29th, 2008 |
| Replies: 3 Views: 992 if you want to PM me with the script, I'll take a look. I'm not sure exactly what you are looking for still. |
Forum: Python Oct 29th, 2008 |
| Replies: 10 Views: 1,001 he was saying if you expect us to look at your code, put that before and after your code in your post. so that we can see syntax highlighting and what not. |
Forum: Python Oct 28th, 2008 |
| Replies: 4 Views: 1,229 I don't think I can properly walk through this without seeing more. What does the input data look like? How is it loaded? |
Forum: Python Oct 28th, 2008 |
| Replies: 2 Views: 515 The hierarchy ends up like this:
window
background
verticalBox
horizontalBox
inputArea
transferBtn
loadBtn |
Forum: Networking Hardware Configuration Oct 28th, 2008 |
| Replies: 9 Views: 1,183 what do yuo mean by "access"? the smb shares? or they can't ping each other or what? |
Forum: Networking Hardware Configuration Oct 28th, 2008 |
| Replies: 9 Views: 879 It sounds like you didn't set the gateway on the POS. |
Forum: Python Oct 28th, 2008 |
| Replies: 23 Views: 1,716 Similiar to what evstevemd said, I was thinking you would need to change the sample rate (how many bits per second are played) if you take a 44000hz sample and play it at 88000hz, it should play at... |
Forum: Python Oct 28th, 2008 |
| Replies: 25 Views: 1,745 I posted earlier that I use vim when I am programming in *nix |
Forum: Python Oct 28th, 2008 |
| Replies: 23 Views: 1,716 What platform are you on? What module are you using for playback right now? |
Forum: Python Oct 28th, 2008 |
| Replies: 25 Views: 1,745 They are very "commandlinesh", which is what makes them so powerful. Seriously, if you are going to be doing a lot of development on *nix learning vim or emacs is the best thing you can do, even if... |
Forum: Project Partners Wanted Oct 28th, 2008 |
| Replies: 3 Views: 992 What are the scripts needed for? What do you need to do? |
Forum: Python Oct 28th, 2008 |
| Replies: 6 Views: 1,669 Which version of python are you using? |
Forum: Python Oct 28th, 2008 |
| Replies: 1 Views: 455 Are you getting an error when you try to parse it?
what about:
content = file.read().encode('ascii', 'ignore')
? |