4,305 Posted Topics

Member Avatar for briansmall

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.

Member Avatar for Lardmeister
0
124
Member Avatar for preeeya

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 …

Member Avatar for Duoas
0
117
Member Avatar for ZZucker

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().

Member Avatar for vegaseat
0
173
Member Avatar for werks
Member Avatar for joshSCH
0
231
Member Avatar for rysin
Member Avatar for rysin
0
100
Member Avatar for dreambreeze

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) …

Member Avatar for vegaseat
0
96
Member Avatar for HazardTW

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 …

Member Avatar for HazardTW
0
648
Member Avatar for briansmall
Member Avatar for The Dude
Member Avatar for twomers
0
112
Member Avatar for The Dude

... and I always though that rabbits are so shy! vmanes, is this guy hunting deer with a bazooka?

Member Avatar for Ene Uran
0
93
Member Avatar for mbarb27
Member Avatar for Begjinner

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 …

Member Avatar for Begjinner
0
107
Member Avatar for AsymptoticCoder

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.

Member Avatar for vegaseat
0
155
Member Avatar for myheartbits

... 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.

Member Avatar for vegaseat
0
69
Member Avatar for sarabhjeet

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, …

Member Avatar for sarabhjeet
0
114
Member Avatar for kimvolker

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.

Member Avatar for vegaseat
0
342
Member Avatar for penguin47

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 …

Member Avatar for vegaseat
0
123
Member Avatar for sasdap

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 …

Member Avatar for vegaseat
0
56
Member Avatar for sasdap

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 …

Member Avatar for vegaseat
0
221
Member Avatar for Begjinner
Member Avatar for vegaseat
0
102
Member Avatar for sasdap
Member Avatar for ssakhamuri

You can easily write a a small container class inheriting from the list container and adding your safe requirements.

Member Avatar for vegaseat
0
267
Member Avatar for The Dude

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.

Member Avatar for Thomas R
0
299
Member Avatar for Narue
Member Avatar for Jicky

"Belt your family. It's the law." (a pro-seatbelt sign along the highway)

Member Avatar for vegaseat
0
270
Member Avatar for tayspen
Member Avatar for sasdap

I published a code snippet some time ago: [url]http://www.daniweb.com/code/snippet326.html[/url]

Member Avatar for sasdap
0
53
Member Avatar for sigkill9

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 = …

Member Avatar for vegaseat
0
221
Member Avatar for lisac

Your wireless router might be sharing the same frequency and channel with a neighboring router.

Member Avatar for Suspishio
0
104
Member Avatar for rmansuri
Member Avatar for sneekula

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 …

Member Avatar for jrcagle
1
245
Member Avatar for furkankamaci
Member Avatar for lasher511

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.

Member Avatar for sneekula
0
276
Member Avatar for uniquestar

Left? Right? I am more a middle of the road person. So guess what I am using to get things done?

Member Avatar for scru
0
152
Member Avatar for hellsing

Another suggestion would be not to use the IDLE IDE but something like the popular DrPython IDE (needs wxPython) or the PyScripter IDE.

Member Avatar for Duoas
0
94
Member Avatar for fonzali

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: …

Member Avatar for fonzali
0
308
Member Avatar for Ravenous Wolf

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 …

Member Avatar for sneekula
0
243
Member Avatar for Ezzaral
Member Avatar for amithasija

[QUOTE=Ancient Dragon;510168]bill gates did it.[/QUOTE]Thumbs up on that one!

Member Avatar for Estella
0
116
Member Avatar for Narue

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]; } …

Member Avatar for bector
2
8K
Member Avatar for zandiago

[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.

Member Avatar for Ene Uran
0
205
Member Avatar for sneekula
Member Avatar for mhslax13

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 …

Member Avatar for mhslax13
0
87
Member Avatar for gusbear

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 …

Member Avatar for Ene Uran
0
2K
Member Avatar for kv79

Did you watch the movie "i,Robot" with Will Smith (2004)? It has most of the answers.

Member Avatar for vegaseat
0
120
Member Avatar for TheNNS
Member Avatar for The Dude

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 …

Member Avatar for sneekula
0
469
Member Avatar for nightwalker

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.

Member Avatar for vegaseat
0
110
Member Avatar for voodoo_doctor
Member Avatar for voodoo_doctor
0
69
Member Avatar for Lardmeister

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!

Member Avatar for sneekula
0
302

The End.