Posts
 
Reputation
Joined
Last Seen
Ranked #26
Strength to Increase Rep
+17
Strength to Decrease Rep
-4
93% Quality Score
Upvotes Received
3K
Posts with Upvotes
2K
Upvoting Members
477
Downvotes Received
104
Posts with Downvotes
79
Downvoting Members
75
364 Commented Posts
~5.81M People Reached
About Me

Scientist

Interests
Astrophysics Sailing Hiking
PC Specs
Dell Inspiron 15 Windows81, Raspberry Pi Linux, MacOSX
Favorite Tags
c++ x 404
gui x 225
tkinter x 204
c x 183
Member Avatar for vegaseat
Member Avatar for Reverend Jim
15
13K
Member Avatar for kamaksha1

Are you trying to store your data in the file path? Please read the Windows manual on file path limitations.

Member Avatar for Reverend Jim
1
8K
Member Avatar for Freaky_Chris

[QUOTE=Freaky_Chris;609478]Its probably including the path in that case then, since the whole path C:\\..............\\whatever including the file is 305 characters long. Chris[/QUOTE]You could use os.chdir(path) to establish the working directory and then use the filename only.

Member Avatar for rory jackson
2
4K
Member Avatar for Reverend Jim

You know the hero/star can't get killed because he/she has to appear in next weeks show.

Member Avatar for Reverend Jim
9
3K
Member Avatar for Duki

Just finished a grilled salmon steak with a fresh garden salad and buttermilk dressing. Right now I am working on dessert, vanilla ice cream with a Kahlua chaser.

Member Avatar for Dani
22
17K
Member Avatar for Lardmeister
Member Avatar for Dani
0
120
Member Avatar for vegaseat

Using PySide's QAbstractTableModel allows you to easily customize a widget like QTableView and make it more generic in its application. Here we use it to present solvent data in tabular form and sort each column content by simply clicking on the header. You can feed it any data as long …

Member Avatar for Mark_94
5
6K
Member Avatar for vegaseat

Things don't have to be black and white all the time. Use a Windows API call to add some color to your text output.

Member Avatar for Dani
2
72K
Member Avatar for vegaseat

The Tkinter module comes with the normal Python installation. It allows you to create Python GUI programs for Windows, Linux or Unix on the Mac. In this snippet we put a GIF image (.gif) onto a form's canvas with just a few lines of code. Most of the lines are …

Member Avatar for CodeWorked
1
22K
Member Avatar for linux

Yes, there is a devlopment of a full featured GUI Operating System written in Python under the name Unununium (wouldn't be my choice), nicknamed after the 111th chemical element 'Roentgenium', whose temporary IUPAC name until November 2004 was 'Unununium'. See: [url]http://en.wikipedia.org/wiki/Unununium_(operating_system[/url])

Member Avatar for Thulan
2
2K
Member Avatar for LastMitch

Two movies I saw in the theater, and thought they were worth seeing again. So I bought the DVDs: "Crazy Stupid Love" with Steve Carell and Lulianne Moore. "Friends With Benefits" with Mila Kunis and Justin Timberlake.

Member Avatar for LoanHensley
6
6K
Member Avatar for mouigher

Seems to be too simple to be homework. You were almost there, you should only multply the overtime pay by 1.5. [code=python]""" output should be: Pay rate $10.00 Regular Hours 40 Overtime hours 20 Regular pay $400.00 Overtime pay $300.00 Total Pay $700.00 """ def hours(): hours = input("How many …

Member Avatar for Minasa
0
3K
Member Avatar for joe82

If you want to concatenate (join) every two lines in your file, then you can use something simple like this ... [code=python]names = """\ Valerie Vanessa Velvet Venice Venus Verena """ # create a test file filename = "mynames.txt" fout = open(filename, "w") fout.write(names) fout.close() mod_list = [] count = …

Member Avatar for vishakha_3
0
22K
Member Avatar for vegaseat

For those who are afraid of lycanthropes and full moons, here is a way to figure out the phase of the moon.

Member Avatar for Sichen
2
6K
Member Avatar for kingmu

Just a little quirk in Tkinter. Since the canvas has a default border of 2 pixels simply give it a [B]bd=-2[/B] to cancel it.

Member Avatar for Madnokof
0
11K
Member Avatar for vegaseat

What "Hello World" is to the console, the "Bouncing Ball" is to the Graphical User Interface. Nothing fancy, the ball is created via a call to the API function ellipse() and then bounced within the confines of the windows form. For the DEV C++ crowd: Let me know if you …

Member Avatar for laheg
2
25K
Member Avatar for vegaseat

The printer seems to be a much ignored computer peripheral when it comes to programming. This little code snippet explores one way to send text to the default printer. It actually draws the text into an imaginary box on the paper. You can specify the upper left and lower right …

Member Avatar for Djcordeiro
2
4K
Member Avatar for tony75

If you have pip installed, check with ... ''' modules_pip101.py list all the installed modules ''' import pip for item in pip.get_installed_distributions(): print(item)

Member Avatar for Andreas_7
0
22K
Member Avatar for sravan953

Something like Lardmeister's code would be a good start of an Equation Solver as set forth in: [url]http://www.daniweb.com/forums/post159522-7.html[/url] Just make sure you keep your units of measurement correct.

Member Avatar for Smartfitness33
1
14K
Member Avatar for Thanh Phong
Member Avatar for GooGooseGooey
0
36K
Member Avatar for macroasm

That particular software is very early alpha at best. At this point it is very clumsy and will frustrate you thoroughly!

Member Avatar for Titus_1
-4
2K
Member Avatar for ZZMike

From the Python manual that ships with every installation: str.strip([chars]) Return a copy of the string with the leading and trailing characters removed. The chars argument is a string specifying the set of characters to be removed. If omitted or None, the chars argument defaults to removing whitespace. ... Python …

Member Avatar for tinstaafl
0
13K
Member Avatar for Demetrius

I assume you are using Windows. With your knowledge in basic you should look into BCX. It programs in a modern basic and then translates to compile with a number of C or C++ compilers. I look at C is just a subset of C++, well let's say 99% of …

Member Avatar for k191376
0
15K
Member Avatar for miltocke

Rule of thumb is that it takes about ten good C++ programmers to do what 1 good Python program can accomplish in a given time span. So, yeah there are a lot more C++ jobs out there! On could imagine that with the help of AI future computers could do …

Member Avatar for Raunikkapoor
0
238
Member Avatar for Crazyscript77
Member Avatar for spam_1
0
4K
Member Avatar for Reverend Jim

A true Klingon Warrior uses only machine code, keyed in on the front panel switches in raw binary.

Member Avatar for John_smith
10
21K
Member Avatar for The Dude

Judging from what he does to the inside of my mouth, that could have been my own dentist. After all, a dentist lives from the pain of others.

Member Avatar for 1987davids
2
537
Member Avatar for piyush gandhi
Member Avatar for vegaseat
Member Avatar for paddy3118
1
2K
Member Avatar for dseto200

Take a look at ... http://www.daniweb.com/software-development/python/threads/466346/word-jumble#post2031135

Member Avatar for Akash_22
1
7K