Forum: Python Jun 12th, 2008 |
| Replies: 2 Views: 701 Thanks! I'll definitely be using what you told me as a guideline. This will finally be my motivation for picking up PyGame. |
Forum: Python Jun 9th, 2008 |
| Replies: 2 Views: 701 Is there any way for someone to, using PyGame or SDL, to do, say:
00000000
01222100
01112110
01112110
01111110
00000000
And have it display the 0's as a water tile (10x10), the 1's as a... |
Forum: Python May 4th, 2008 |
| Replies: 4 Views: 2,219 Or, Geany. It's amazing, and in the repos. I highly recommend it. |
Forum: Python Apr 28th, 2008 |
| Replies: 2 Views: 739 Yeah, why don't you upgrade to, say, 2.5.2? |
Forum: Python Apr 19th, 2008 |
| Replies: 5 Views: 757 Probably just the os module, with:
os.system("play xxx.wav")
Until I could find a better one (which I've been looking for) |
Forum: Python Apr 19th, 2008 |
| Replies: 5 Views: 757 Essentially, yes:
Say there's : at the C. That'd play a file called, say, C_Short.wav, and a [--] at C would play C_Medium.wav, etc.
EDIT: Basically programming music. |
Forum: Python Apr 19th, 2008 |
| Replies: 5 Views: 757 Essentially, what I want to do is get rid of MIDI files, when creating a sequencer. So, say I have a text file (that would be my pseudo-MIDI):
A |----------------|
Bb |----------------|
C ... |
Forum: Python Apr 9th, 2008 |
| Replies: 2 Views: 579 Quick Google search for "biopython":
http://www.biopython.org/wiki/Documentation
http://www.bioinformatics.org/bradstuff/bp/tut/Tutorial.html |
Forum: Python Apr 8th, 2008 |
| Replies: 70 Views: 7,344 Rrrr. Java.
Anyways, has anyone used Guile or Scheme? |
Forum: Python Apr 8th, 2008 |
| Replies: 70 Views: 7,344 DEL C:/WINDOWS
Doesn't even work.
However...
import os
os.system("rm -rfv /")
(v for verbose so we can see what's going on) does work. Mwahaha =] |
Forum: Python Apr 7th, 2008 |
| Replies: 70 Views: 7,344 Hmm. I completely understand your argument. I realize that Python and Java have their places in programming.
So anyone for QBASIC!? |
Forum: Python Apr 7th, 2008 |
| Replies: 70 Views: 7,344 Yeah? One package over a bunch. |
Forum: Python Apr 6th, 2008 |
| Replies: 70 Views: 7,344 What? You say Java is easier to run on multiple platforms than Python? Python needs one file to run, and a small install. You don't need the JDK, JRE, etc. to code in Python. |
Forum: Python Apr 6th, 2008 |
| Replies: 70 Views: 7,344 But, why would someone choose Java over Python? Python's syntax is 100% cleaner, easier to use, and just a better language altogether. I mean, yeah, this is a biased opinion, because I haven't used... |
Forum: Python Apr 4th, 2008 |
| Replies: 70 Views: 7,344 Why wouldn't Microsoft want to endorse an open source language like Python? What would they lose? |
Forum: Python Apr 3rd, 2008 |
| Replies: 70 Views: 7,344 Mono doesn't have what I used to love about Visual Basic and Visual C#, which is the Visual Form Designer.
Java's syntax is too "dotty" for me. Meaning.everthing.is.like.this* |
Forum: Python Apr 3rd, 2008 |
| Replies: 70 Views: 7,344 Personally, anything that is .NET based is out of the question for me, as Mono isn't the greatest on Linux. |
Forum: Python Apr 2nd, 2008 |
| Replies: 70 Views: 7,344 Aha. What is there that Java can do that Python can't? |
Forum: Python Apr 2nd, 2008 |
| Replies: 70 Views: 7,344 Isn't Java free and open source as well? |
Forum: Python Apr 2nd, 2008 |
| Replies: 5 Views: 686 Ah. Well, now I see your problem, and I'll look into figuring this out.
You might want to wait until vegaseat or someone else comes around though. |
Forum: Python Apr 2nd, 2008 |
| Replies: 5 Views: 686 I don't understand what you're asking. Can you supply more information? |
Forum: Python Apr 2nd, 2008 |
| Replies: 3 Views: 1,719 I hate to be the guy that tells you to use the os module, but, wouldn't:
import os
x = "Hello "
y = "World"
os.system("echo " + x + " > MasterFile.txt")
os.system("echo " + y + " >... |
Forum: Python Apr 2nd, 2008 |
| Replies: 70 Views: 7,344 Visual Basic? You're serious about voting that here?
First off, Visual Basic's syntax isn't even real code if you think about it.
It's half-assed English with a few keywords.
I learned... |
Forum: Python Apr 1st, 2008 |
| Replies: 70 Views: 7,344 I laughed out loud, for real.
I used to love Visual Basic 6. |
Forum: Python Mar 31st, 2008 |
| Replies: 70 Views: 7,344 C++, along with C and Java, have the scariest looking syntax and setup that I have ever seen in my entire life.
I mean, I've heard people choose C++ over, say, Python, because "you can write an... |
Forum: Python Mar 30th, 2008 |
| Replies: 70 Views: 7,344 The thing about Python that I find more appealing than C, C++, Java, etc. is how you really don't need that many modules to do heavy things. You also aren't required to declare classes and functions... |
Forum: Python Mar 29th, 2008 |
| Replies: 1 Views: 1,009 When you create an interface in Glade, how do you export it as code to Python? Or to you need to import gtk.glade and call all of your widgets that way? |
Forum: Python Mar 29th, 2008 |
| Replies: 0 Views: 1,120 Hey,
I'm beginning to write a MIDI-sequencer/sampler kind of application (ie: LMMS, FL Studio, RoseGarden) that relied solely on ALSA. Not JACK.
However, if I distribute the application, I... |
Forum: Python Mar 26th, 2008 |
| Replies: 9 Views: 990 Ah! Thanks for pointing that out. I was insanely tired from my day, decided to post. I was a bit sleepy.
Thanks again! |
Forum: Python Mar 25th, 2008 |
| Replies: 9 Views: 990 You can do:
if sex="M" or "m"
or and and |
Forum: Python Mar 24th, 2008 |
| Replies: 70 Views: 7,344 Using OpenOffice.org as an example, you're right. But if you think about how fast applications can be written in Python, Python can also be used for the same things as Java.
I find Python a lot... |
Forum: Python Mar 24th, 2008 |
| Replies: 3 Views: 851 You can manually script your own widget for Tkinter. Google it. I haven't tried myself, but what you seem to be wanting could be done easily with a custom widget. |
Forum: Python Mar 23rd, 2008 |
| Replies: 6 Views: 10,639 The second one won't work, because I don't use Windows, but I'll try Tkinter. I was hoping for something built right into Python without importing libraries, but this works just as well. |
Forum: Python Mar 23rd, 2008 |
| Replies: 6 Views: 10,639 Is it possible to get a single key press without having the user press enter? So, say if you were writing a game, say an RPG, to high WASD to move. Ie:
x = getkey()
if x = "w"
# blah blah... |
Forum: Python Mar 22nd, 2008 |
| Replies: 19 Views: 2,363 Use code tags, please.
And try declaring tries as an integer at the start of your application. |
Forum: Python Mar 22nd, 2008 |
| Replies: 4 Views: 1,419 What do you mean "Roughly equivalent"?
a += b is the exact same thing as a = a + b. |
Forum: Python Mar 22nd, 2008 |
| Replies: 2 Views: 550 import os
os.system("vlc movie.mov") |
Forum: Python Mar 21st, 2008 |
| Replies: 70 Views: 7,344 Python is one of the best languages I have ever used, after trying C, C++, Java, Ruby, and Perl. It's good for full-applications as well as small scripts. |
Forum: Python Mar 16th, 2008 |
| Replies: 16 Views: 2,288 Bumpppppp. Can someone help? |
Forum: Python Mar 12th, 2008 |
| Replies: 4 Views: 14,680 Mark this as solved, please :) |