1,175 Posted Topics
| |
Re: 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. | |
Re: 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. | |
Re: I am not from Scotland, but would love to be! Nice pictures .... [url]http://www.visitscotland.com/[/url] | |
Re: 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 | |
Re: If a cluttered desk is the sign of a cluttered mind, what is the significance of a clean desk? | |
Re: God bless you Mister Aia! However, what does Obama have to do with an anti abortion video from 2000? | |
Re: 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 … | |
Re: The average American has 13 credit cards. I have 2 which means you must have 24 of them. | |
Re: You could have spelled it seggs, this way fewer cons get offended. | |
Re: 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)] … | |
Re: Those magnets are gigantic, well insulated, and no provisions have been made to heat them up. | |
Re: 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? | |
Re: 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? | |
Re: 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 … | |
Re: [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] | |
Re: David Fraser Nolan founded the Libertarian Party of the United States in 1971. God bless him! | |
Take the test at: [url]http://www.blogthings.com/howrepublicanareyouquiz/[/url] | |
Re: 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") | |
Re: I hope their mass spectrometer was in working order. | |
Re: [QUOTE=jasimp;701655]Some people shared your concern in [URL="http://www.daniweb.com/forums/thread143676.html"]this[/URL] Chrome thread :)[/QUOTE]Thanks jasimp! | |
Re: All you need to do is to get rich enough and the taxes will disappear or at least fade away. | |
Re: 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. | |
Re: [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 … | |
Re: 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. | |
Re: At this point you better give us some code, or we all get lost. | |
Re: Also remember that the searched list weights has to be sorted for bisect to work! | |
Re: From the Bible: "A feast is made for laughter, and wine maketh merry: but money answers all things." | |
Re: 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] | |
Re: 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 | |
This thread includes thoughts from and about our Canadian friends too. US Elections: Too much Pluribus, not enough Unum. | |
Re: Pretty bad music, but I got 3 right by just clicking at random. | |
Re: Tkinter should be fast enough unless the cars are going at the speed of sound. | |
Re: 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') … | |
Re: 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: … | |
Re: [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! | |
Re: Can you give us your whole error message? | |
Re: 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! | |
| |
Re: [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 … |
The End.