Forum: Python Nov 8th, 2008 |
| Replies: 4 Views: 985 sort() did sort out the dict, but not in the correct order.
So unfortunately, I am forced to use a list which works nicely. :/ |
Forum: Python Nov 8th, 2008 |
| Replies: 4 Views: 985 I am creating a tetris-like game. I have decided to use coordinates (x,y) along with a dictionary. Here is a part of the dictionary:
gameTable =... |
Forum: Python Sep 13th, 2008 |
| Replies: 2 Views: 477 Here, I fixed it up for you...It errored up because you had some braces and colons ( : )missing.
print"Simple Calculator"
def menu():
print"-------------------------------------------------"... |
Forum: Python Sep 12th, 2008 |
| Replies: 0 Views: 436 Is there any way to get stock icons with PyQt4? |
Forum: Python Sep 6th, 2008 |
| Replies: 1 Views: 408 Gah! Ok I'm sorry guys, I got it.
Turns out that the string I wanted to join was a QString. Meh ok anyway I fixed it. :) |
Forum: Python Sep 6th, 2008 |
| Replies: 1 Views: 408 Ok I'm making a program in PyQt and when I call
os.path.join("~/", "otherdirectory")
It gives me:
File '/usr/lib/python2.5/posixpath.py', Line 62, in join:
elif path == ' ' or... |
Forum: Python Aug 30th, 2008 |
| Replies: 5 Views: 627 Ahh! Man your a lifesaver! You just saved me from hours and hours of frustration! I cannot thank you enough!! :) |
Forum: Python Aug 28th, 2008 |
| Replies: 5 Views: 627 Hmm well it turned out a little harder than I was expecting, I am using a QListWidget, I am trying to search for items in the list, but I have a problem, I plan on clearing the list and showing the... |
Forum: Python Aug 28th, 2008 |
| Replies: 5 Views: 627 Ok, so I'll have to do it manually, should be easy.
Thank you :) |
Forum: Python Aug 27th, 2008 |
| Replies: 5 Views: 627 Ok I'll get straight to the point, how can a create a search box? You know, you type something in and it filters out the ones that don't match. Is there a special widget for this? Or would I have to... |
Forum: Python Aug 22nd, 2008 |
| Replies: 7 Views: 2,345 I am dumb.
It was right there infront of my eyes!
Thank you! :) |
Forum: Python Aug 22nd, 2008 |
| Replies: 7 Views: 2,345 I don't really understand :|
I tried that with a layout but it didn't work :$ |
Forum: Python Aug 22nd, 2008 |
| Replies: 3 Views: 1,822 First, import the os module:
import os
Then check if the path exists:
if os.path.exists(MY_PATH_HERE):
#Do something...
else:
#Throw an error |
Forum: Python Aug 22nd, 2008 |
| Replies: 7 Views: 2,345 That works for one widget, but what I am trying to achieve is to add multiple widgets to the same tab. |
Forum: Python Aug 21st, 2008 |
| Replies: 7 Views: 2,345 Yes I am using classes, here is some more information:
Here is a snippet of the code that I am having trouble with:
import sys
import os
from PyQt4.QtCore import *
from PyQt4.QtGui import *
... |
Forum: Python Aug 21st, 2008 |
| Replies: 7 Views: 2,345 Hello guys.
I am having trouble with QTabWidget:
I can't add multiple widgets with addTab nor insertTab.
even when I try something like:
self.widget1 = QListWidget()
self.widget2 =... |