Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #3K
~3K People Reached

9 Posted Topics

Member Avatar for OutOfReach

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 influencial person in history and then present to a group of people. I narrowed it …

Member Avatar for Narue
0
142
Member Avatar for OutOfReach

Hey all, I am a C beginner. My problem with my code is that I get a segfault. Here's my code [CODE=C] #include <stdio.h> struct studentInfo { int totalClasses; float GPA; char studentName[41]; }; main() { int numOfStudents, i; printf("How many students would you like to take account of? "); …

Member Avatar for OutOfReach
0
133
Member Avatar for OutOfReach

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: [CODE=Python] gameTable = {(-5,10):0,(-4,10):0,(-3,10):0,(-2,10):0,(-1,10):0,(0,10):0, (1,10):0, (2,10):0, (3,10):0, (4,10):0, (5,10):0, (-5,9):0, (-4,9):0, (-3,9):0, (-2,9):0, (-1,9):0, (0,9):0, (1,9):0, (2,9):0, (3,9):0, (4,9):0, (5,9):0, (-5,8):0, (-4,8):0, (-3,8):0, (-2,8):0, (-1,8):0, (0,8):0, …

Member Avatar for Ene Uran
0
212
Member Avatar for deviantrunner

Here, I fixed it up for you...It errored up because you had some braces and colons ( : )missing. [CODE=Python]print"Simple Calculator" def menu(): print"-------------------------------------------------" print"the option menu" print"1)add" print"2)substract" print"3)multiply" print"4)divide" print"5)exit" print"-------------------------------------------------" return input("please choose the number of the task u want =)") def add(a,b): print"u have chosen 2 …

Member Avatar for deviantrunner
0
227
Member Avatar for OutOfReach
0
99
Member Avatar for OutOfReach

Ok I'm making a program in PyQt and when I call [code=Python]os.path.join("~/", "otherdirectory")[/code] It gives me: [code=Python]File '/usr/lib/python2.5/posixpath.py', Line 62, in join: elif path == ' ' or path.endswith('/'): Attribute Error: endswith [/code] I don't know what is causing this. :S Any help would be appreciated!

Member Avatar for OutOfReach
0
305
Member Avatar for OutOfReach

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 create a normal lineedit widget and do all the …

Member Avatar for OutOfReach
0
219
Member Avatar for dinilkarun

First, import the os module: [code=Python]import os[/code] Then check if the path exists: [code=Python] if os.path.exists(MY_PATH_HERE): #Do something... else: #Throw an error [/code]

Member Avatar for dinilkarun
0
155
Member Avatar for OutOfReach

Hello guys. I am having trouble with QTabWidget: I can't add multiple widgets with addTab nor insertTab. even when I try something like: [code=python] self.widget1 = QListWidget() self.widget2 = QPushButton("Foo") self.widget3 = QLabel("Bar") self.tabs = QTabWidget() layout = QVBoxLayout() layout.addWidget(self.widget1) layout.addWidget(self.widget2) layout.addWidget(self.widget3) self.tabs.addTab(layout, "Foobar")[/code] It will raise an error that …

Member Avatar for OutOfReach
0
1K

The End.