1,175 Posted Topics

Member Avatar for bonnie1702
Member Avatar for sneekula
0
60
Member Avatar for Stefano Mtangoo

I use DrPython. You can download quite a number of plugins for it. It works on Windows and Linux, and was originally written by a teacher of Python. It's easy to switch between editor, shell and output windows. It also handles the input() or raw_input() function well.

Member Avatar for mathijs
0
240
Member Avatar for Salem
Member Avatar for blackrobe

Oh sweet Jesus! Years ago they used to pester us with stuff like this. C syntax can be real ugly, and your example is one of the best examples of ugly C syntax.

Member Avatar for tyincali
0
159
Member Avatar for jbennet

I am not from Scotland, but would love to be! Nice pictures .... [url]http://www.visitscotland.com/[/url]

Member Avatar for sneekula
0
149
Member Avatar for ZZucker

Death Causes Loneliness, Feeling Of Isolation Hospitals Are Sued By 7 Foot Doctors Local High School Dropouts Cut In Half Nicaragua Sets Goal To Wipe Out Literacy Stud Tires Out Teacher Strikes Idle Kids Ban On Soliciting Dead In Ogden

Member Avatar for sneekula
0
95
Member Avatar for ZZucker

If a cluttered desk is the sign of a cluttered mind, what is the significance of a clean desk?

Member Avatar for Lardmeister
0
1K
Member Avatar for Aia

God bless you Mister Aia! However, what does Obama have to do with an anti abortion video from 2000?

Member Avatar for Lardmeister
0
368
Member Avatar for Astudent

When in doubt run a simplified test code: [code=python]# test Tkinter Entry import Tkinter as tk def question5(event): if entry1.get().lower() in ["samus", "metroid", "prime", "metroid prime"]: label2['text'] = "Its the amazing Metroid game heroine Samus, good call!" else: label2['text'] = "Sigh.. try again." root = tk.Tk() # first entry with …

Member Avatar for tyincali
0
128
Member Avatar for Alex Edwards

The average American has 13 credit cards. I have 2 which means you must have 24 of them.

Member Avatar for Alex Edwards
0
158
Member Avatar for etechsupport

You could have spelled it seggs, this way fewer cons get offended.

Member Avatar for jbennet
0
145
Member Avatar for vmars

Okay, I used the BOA constructor IDE to create two files. One file Frame1.py contains the meat: [code=python]#Boa:Frame:Frame1 # saved as Frame1.py import wx # user added # Dialog1.py was separately created with New import Dialog1 def create(parent): return Frame1(parent) [wxID_FRAME1, wxID_FRAME1BUTTON1, wxID_FRAME1PANEL1, ] = [wx.NewId() for _init_ctrls in range(3)] …

Member Avatar for sneekula
0
539
Member Avatar for ZZucker
Member Avatar for itdupuis

Those magnets are gigantic, well insulated, and no provisions have been made to heat them up.

Member Avatar for itdupuis
0
486
Member Avatar for vmanes

Very nice find there vmanes! I am mostly into to high level programming, so I must be a bloody liberated programmer. I wonder how Mr. Spock would program?

Member Avatar for sneekula
1
208
Member Avatar for odinaryman
Member Avatar for Serunson

Yes, I remember you. Also, your English was sooo much better than jbennet's. :) Welcome back, temporary stranger, glad to have you back again. Maybe you can give us an opinion on Mister Brown running England, or are you afraid of being spied upon by your security apparatus?

Member Avatar for jbennet
0
203
Member Avatar for The Dude
Member Avatar for GrimJack

Being thrown out of your home, spouse kids and all, because of fraudulent banking practices shouldn't also steal your right to vote! Having dead democrats vote is a minor problem. In most states illegal immigrants can easily vote, they have an address. Also, a huge amount of votes are thrown …

Member Avatar for ZZucker
0
380
Member Avatar for vmanes
Member Avatar for kattastic

[QUOTE=kattastic;713438]sorry. i googled 'help me.' and it sent me here sorry to trouble you kat[/QUOTE]May God bless you and give you salvation! Got to your nearest church and ask the pastor to help you! If there is no church near you visit: [url]http://www.godhelpmeplease.com/[/url]

Member Avatar for ZZucker
0
160
Member Avatar for Dave Sinkula

David Fraser Nolan founded the Libertarian Party of the United States in 1971. God bless him!

Member Avatar for GrimJack
0
123
Member Avatar for sneekula

Take the test at: [url]http://www.blogthings.com/howrepublicanareyouquiz/[/url]

Member Avatar for Aia
0
129
Member Avatar for MaxManus

Your error sits right here ... [code=python]..... s = open("resultat.txt","w") for i in range(0,n,1): line = x[i], resultat s.write(line + "\n") s.close() [/code]This line = x[i], resultat will give you a tuple, so line + "\n" will give you the error Try: s.write(str(line) + "\n")

Member Avatar for MaxManus
0
144
Member Avatar for GrimJack
Member Avatar for The Dude
Member Avatar for neuronimbus

[QUOTE=jasimp;701655]Some people shared your concern in [URL="http://www.daniweb.com/forums/thread143676.html"]this[/URL] Chrome thread :)[/QUOTE]Thanks jasimp!

Member Avatar for sneekula
0
155
Member Avatar for peter_budo
Member Avatar for Aia

All you need to do is to get rich enough and the taxes will disappear or at least fade away.

Member Avatar for Aia
0
141
Member Avatar for rajaram_l20

Looks like all of those packages use Microsoft's COM and are then not under the jurisdiction of the ever so efficient Python memory manager. In other words, you are running an external program from Python.

Member Avatar for Gribouillis
0
85
Member Avatar for crazzym

[QUOTE=crazzym;713870]One more thing: In python, a list is like a vector in C?[/QUOTE]Unlike the vector in C++, a python list is simply an indexed container, the indexed elements in a list can be any object of any type. Here are some standard operations you can apply to a list or …

Member Avatar for crazzym
0
166
Member Avatar for harrykokil
Member Avatar for vmars

The Python interactive shell is there to quickly test an few lines of Python code. You cannot save or load any code, for that you need to use an editor, or better one of the many IDE programs.

Member Avatar for sneekula
0
114
Member Avatar for The Dude
Member Avatar for Stefano Mtangoo
Member Avatar for Stefano Mtangoo
0
101
Member Avatar for SitiSlicker

Also remember that the searched list weights has to be sorted for bisect to work!

Member Avatar for sneekula
0
2K
Member Avatar for Lardmeister

From the Bible: "A feast is made for laughter, and wine maketh merry: but money answers all things."

Member Avatar for sneekula
0
366
Member Avatar for Andymoore88

If your file is not too large, you can go as simple as this: [code=python]newuser = "hamster201" fin = open("MyUserFile.txt", "r") text = fin.read() fin.close() if newuser in text: print "this username already used" [/code]

Member Avatar for Andymoore88
0
157
Member Avatar for R0bb0b

I can feel for you. You are fighting MS and its urge for doing it their way, the path to a monopoly. BTW, this is the venting forum

Member Avatar for Lardmeister
0
126
Member Avatar for sneekula

This thread includes thoughts from and about our Canadian friends too. US Elections: Too much Pluribus, not enough Unum.

Member Avatar for Ene Uran
0
249
Member Avatar for The Dude
Member Avatar for Ene Uran
0
54
Member Avatar for harrykokil

Tkinter should be fast enough unless the cars are going at the speed of sound.

Member Avatar for sneekula
0
43
Member Avatar for Kezoor

Give it a little test to familiarize yourself with dictionaries: [code=python]cards = {'rank' : (2, 3, 4, 5, 6, 7, 8, 9, 10, 'Jack', 'Queen', 'King', 'Ace'), 'color' : ('Spade', 'Club', 'Diamond', 'Heart')} for card in cards: print card print cards[card] """ my output ---> color ('Spade', 'Club', 'Diamond', 'Heart') …

Member Avatar for Kezoor
0
182
Member Avatar for massivefermion

What operating system are you using? If you use Window's Vista expect problems with Tkinter during the installation. I remember from a friend that Vista's ever so stupid security scheme refuses to install some of the needed DLL files without letting you know. If you have Vista, look into directory: …

Member Avatar for jlm699
0
76
Member Avatar for bumsfeld

[QUOTE=bumsfeld;704199]Out of the corner of my tearful eye I noticed that I made my post #1000! I am elated, exhilarated, jubilant, overjoyed, ecstatic and happy! Time to get that 12 year old wine out of the cellar.[/QUOTE]Let's toast to that fantastic accomplishment!

Member Avatar for GrimJack
3
200
Member Avatar for GrimJack
Member Avatar for ihatehippies
Member Avatar for GrimJack

Beauty vs. the Beast? Most voters are not smart enough to figure the questions out themselves. Sarah can answer with whatever she wants, as long as she does it with her usual charm!

Member Avatar for sneekula
0
254
Member Avatar for corrola
Member Avatar for scru
0
156
Member Avatar for TheNational22

[QUOTE=TheNational22;703012]Great!! Thanks! One more question. Is there a way to use this, but make the 1 1 standard, and be able to pass an argument over? So, I type subprocess.py, it runs with 1 1, but if I want to do it with 2 2, I could tpye that on …

Member Avatar for sneekula
0
157

The End.