4,305 Posted Topics
Re: I would go for speed! By the time the user figures out the lack of perfection, you are already there with the next improved release. Just ask Uncle Bill. | |
Re: I don't think the Tkinter GUI toolkit as a no-title bar style option. For those kind of details you will have to use the wxPython GUI toolkit which has a style=wx.MINIMIZE_BOX, and then provide a means to exit your program some other way (popup menu or button). Here is a … | |
Re: Zoe, you can also check [url]http://www.daniweb.com/forums/post107016-9.html[/url] for examples of entering a list, and a fairly thorough discussion of input() vs. raw_input(). | |
| |
Re: Is your file named backroundorb.jpeg or backgroundorb.jpeg | |
Re: Is this what you want ... [code=python]import wx class TestPanel(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, -1, 'wx.BoxSizer test', size = (800, 400)) #win = wx.Window (self, -1) box = wx.BoxSizer(wx.VERTICAL) panel1 = wx.Panel(self) panel1.SetBackgroundColour("green") # 1=stretch allowed, and use 10 pixel border box.Add(panel1, 1, wx.ALL|wx.EXPAND, 10) panel2 = wx.Panel(self) … | |
Re: To me Vista has more ugly surprises than those flashy cute ones. So, I will try to keep my XP machine as long as I can. Hopefully, Microsoft wakes up and brings out a nice robust replacement OS for XP in a few years. Of course, right now it seems … | |
| |
Re: Looks like he had no brains, but a beard. Now his beard is gone. | |
Re: ... and I always though that rabbits are so shy! vmanes, is this guy hunting deer with a bazooka? | |
Re: Enlighten us, what is gasp? | |
Re: Oh yeah, the [php]my code here[/php] tags used to work in the DaniWeb of yesteryear just fine. Brought up Python code real nice and colorful, then alas Dani changed her Web. If you want to copy and paste correctly indented code from those old posts, temporarily click on 'reply with … | |
Re: Sorry, I am running Windows XP, but could you try a self.mainPanel.Refresh() after self.mainPanel.SetBackgroundStyle(wx.BG_STYLE_SYSTEM)? Just a WAG. | |
Re: ... please provide me a script ... The forum does not work this way, you got to show an effort on your part first. We will help with problems, but not write your code. There are services for that on the internet. | |
Re: A CHM file is Microsoft's version of a Compiled HTML Help file. Under windows you would just doubleclick on the filename. There is a free utility available to convert .CHM file to .HTML files, which then can be read with any browser. Download from: [url]http://www.gridinsoft.com/chm.php[/url] Editor's note: In the future, … | |
Re: In the filemanager find the DrPython.pyw file, right click and create a shortcut, then drag the shortcut onto your desktop and start DrPython from there. | |
Re: Some basics: To calculate the mean (average), add up all the terms (numeric values) in the list, and then divide by the number of terms in the list. If the number of terms is odd, then the median is the value of the term in the middle of the sorted … | |
Re: I don't have access to Linux, but Python has a number of modules and methods to run an external program from Python. Look in Python Help for details ... [code]# the os module has ... os.system("program-name arg1 arg2") # the subprocess module has ... subprocess.call(["program-name", "arg1", "arg2"]) # if you … | |
Re: Write your C functions and compile to a DLL, then access similar to this example ... [code=python] # using the module ctypes you can access DLLs written in C/C++ # ctypes converts between Python types and C types # there are two ways to write DLLs: # most common uses … | |
Re: Nice information, some different topics I usually don't get into. | |
Re: Do you want to run an external program from within Python? | |
Re: You can easily write a a small container class inheriting from the list container and adding your safe requirements. | |
Re: If I would have to jump back to 1982, I would cry a lot and then drink a lot. Computers were pretty lousy in those days! Worst of all, a nice computer language like Python wasn't there to enjoy. | |
Re: "Belt your family. It's the law." (a pro-seatbelt sign along the highway) | |
Re: I published a code snippet some time ago: [url]http://www.daniweb.com/code/snippet326.html[/url] | |
Re: Remove the repetition with a for loop and a list ... [code=python]def main(): print "\nThis program converts five Celsius values to Fahrenheit" # cosmetic, shows a line of 65 dashes print '-' * 65 # start with an empty list celsius_list = [] for k in range(1, 6): prompt = … | |
Re: Your wireless router might be sharing the same frequency and channel with a neighboring router. | |
Re: Welcome to the Python forum rmansuri! Thank you for the link. | |
Re: In your case values are also unique, so you could swap the dictionary from symbol:name pairs to name:symbol pairs and then look up the name key ... [code=python]def swap_dic(dic): """swap dictionary key:value pairs with a generator expression""" return dict((v, k) for (k, v) in dic.items()) # dictionary of chemical symbols … | |
| |
Re: I still think it has something to do with the Virgin Mary. Besides, storks don't fly at night and go South in the winter. Just my observations. | |
Re: Left? Right? I am more a middle of the road person. So guess what I am using to get things done? | |
Re: Another suggestion would be not to use the IDLE IDE but something like the popular DrPython IDE (needs wxPython) or the PyScripter IDE. | |
Re: The Python code snippet at: [url]http://www.daniweb.com/code/snippet399.html[/url] gives you an idea on how to send a string to a printer on a Windows machine. Your code in this case might look like this ... [code=python]# type/draw a text string to the default printer # needs the win32 extensions package # from: … | |
Re: You are in luck, I just went food shopping: 12 large eggs $2 gallon of milk $4 loaf of whole wheat bread $2 4 boneless pork chops $5 1 pound of cheddar cheese $6 1 pound of cottage cheese $3 1 pound of butter $3 a jar of peaches $2 … | |
Re: [QUOTE=Ancient Dragon;510168]bill gates did it.[/QUOTE]Thumbs up on that one! | |
Re: From the code snippet on the very same subject is another way to initialize a vector ... [CODE] // another way to load a vector ... vector<char> cV(50, '-'); cout << "this vector has 50 char - :\n"; for(k = 0; k < cV.size(); k++) { cout << cV[k]; } … | |
Re: [QUOTE=MidiMagic;506673]As government keeps stealing more and more of the economy, the economy will crash. This will definitely happen if any of those promising national health care is elected.[/QUOTE]If you have a healthy workforce, then productivity goes up. It's productivity that drives this economy. You should have taken Economy 101. | |
Re: What does your error message say? Windows Vista has a mind of its own, and on occasion will refuse to istall a .DLL file (in this case Python25.dll, the python interpreter packaged with your .exe file) because of conceived security reasons. The crappy part is that it won't tell you … | |
Re: I think we have brought this up numerous times before: [QUOTE]The graphics.py library is designed to make it very easy for novice programmers to experiment with computer graphics in an object oriented fashion. It is written by John Zelle for use with the book "Python Programming: An Introduction to Computer … | |
Re: Did you watch the movie "i,Robot" with Will Smith (2004)? It has most of the answers. | |
Re: Sorry to see that the USA gets such a bum rap. Our present government is a little unpolished and rough, but overall we are good, wordly and thoughtful people. Maybe more of us will vote in the future and bring the ship on course again. Right now, money translates directly … | |
Re: I added the proper code tags in the above post. In general, for Python on Daniweb: Please use the [b][noparse][code=python][/noparse][/b] and [b][noparse][/code][/noparse][/b] tag pair to enclose your python code. This will preserve the all important indentations. Also, can you give us your error messages. That will help us a lot. | |
Re: [QUOTE]try/catch statements [/QUOTE]Are you sure you are thinking Python? | |
Re: Wild video, always heard you can set the thing on fire, but this is one heck of a flame! You might have to get a permit from the fire department before you let one go! |
The End.