Forum: Geeks' Lounge Dec 2nd, 2008 |
| Replies: 2 Views: 736 HOLD ON! Before you hit the 'Reply' button. This is not what it seems. This isn't another Linus vs RMS battle.
In school we are doing this living museum project/research were we must pick an... |
Forum: C Nov 28th, 2008 |
| Replies: 2 Views: 420 Ahh! I see, so you need to allocate space for each structure that the pointer points to.
I ended up using:
students[i] = (struct studentInfo *)malloc(sizeof(struct studentInfo));
... |
Forum: C Nov 28th, 2008 |
| Replies: 2 Views: 420 Hey all, I am a C beginner. My problem with my code is that I get a segfault.
Here's my code
#include <stdio.h>
struct studentInfo {
int totalClasses;
float GPA;
char... |
Forum: Python Nov 8th, 2008 |
| Replies: 4 Views: 879 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: 879 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: 469 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: 411 Is there any way to get stock icons with PyQt4? |
Forum: Python Sep 6th, 2008 |
| Replies: 1 Views: 399 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: 399 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: 595 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: 595 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: 595 Ok, so I'll have to do it manually, should be easy.
Thank you :) |
Forum: Python Aug 27th, 2008 |
| Replies: 5 Views: 595 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,184 I am dumb.
It was right there infront of my eyes!
Thank you! :) |
Forum: Python Aug 22nd, 2008 |
| Replies: 7 Views: 2,184 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,729 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,184 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,184 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,184 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 =... |