sneekula 969 Nearly a Posting Maven

Money won't buy you friends, but it will get you a better class of enemy.

sneekula 969 Nearly a Posting Maven

Made a big pot of spaghetti with homemade basil-mushroom meat sauce for an Italian party with a number of my friends.

sneekula 969 Nearly a Posting Maven

Interesting thread!

sneekula 969 Nearly a Posting Maven

Awww. Two leaches on the back of working folk.

????????????????

sneekula 969 Nearly a Posting Maven

What America really needs!

sneekula 969 Nearly a Posting Maven

Scientific American Magazine
A Solar Grand Plan
http://www.sciam.com/article.cfm?id=a-solar-grand-plan

Solar power plants could supply 69 percent of the U.S.’s electricity and 35 percent of its total energy by 2050. Excess daytime energy would be stored as compressed air in underground caverns to be tapped during nighttime hours.

Salem commented: #46 :D +21
sneekula 969 Nearly a Posting Maven

Creative people use Macs.

sneekula 969 Nearly a Posting Maven

It's a time of sorrow and sadness when we lose a loss of life.
uu

sneekula 969 Nearly a Posting Maven

Parts of a dead chicken, grilled, spongy wonderbread and budwiser beer (God, what a swill!)

sneekula 969 Nearly a Posting Maven

Rembrandt painted 700 pictures. Of these, 3,000 are still in existence.

sneekula 969 Nearly a Posting Maven

Some days you're the dog - some days you're the hydrant.

sneekula 969 Nearly a Posting Maven

There is ample evidence that work can be enjoyable, and that indeed, it is often the most enjoyable part of life.

sneekula 969 Nearly a Posting Maven

An old imperial motto:
"When in doubt, escalate the war!"

sneekula 969 Nearly a Posting Maven
sneekula 969 Nearly a Posting Maven

You might want to move this to TechTalk Hardware, that's were the experts are.

sneekula 969 Nearly a Posting Maven

It's best to combine your folder and file names with os.path.join(), then write your file out to the full path name:

import os

folder = 'c:\\outfiles\\newcf'
filename = 'CF092108.csv'
fullpath = os.path.join(folder, filename)
print fullpath  # c:\outfiles\newcf\CF092108.csv

# now write your string out
# it contains all the .csv data
fout = open(fullpath, 'w')
fout.write(new_string)
fout.close()

You can also use that path name for your input.

sneekula 969 Nearly a Posting Maven

The wx.ToggleButton() widget changes its value between True and False each time it is clicked:

# testing wxPython's
# wx.ToggleButton(parent, id, label, pos, size, style)

import wx

class MyFrame(wx.Frame):
    def __init__(self, parent, mytitle, mysize):
        wx.Frame.__init__(self, parent, wx.ID_ANY, mytitle, size=mysize)
        # use panel so single button behaves
        panel = wx.Panel(self, wx.ID_ANY)

        self.tbtn = wx.ToggleButton(panel, 1, 'Toggle Off', (20, 25))
        # bind mouse event to an action
        self.tbtn.Bind(wx.EVT_TOGGLEBUTTON, self.onToggle)

    def onToggle(self, event):
        #print self.tbtn.GetValue()  # test True or False
        if self.tbtn.GetValue():
            self.tbtn.SetLabel('Toggle On')
        else:
            self.tbtn.SetLabel('Toggle Off')
        pass


app = wx.App(0)
# create a MyFrame instance and then show the frame
MyFrame(None, 'test the wx.ToggleButton', (300, 100)).Show()
app.MainLoop()
sneekula 969 Nearly a Posting Maven

Please use code tags with your code to preserve the indentations. Otherwise the code is very difficult to read and not too many folks will help.

[code=python]
your Python code here

[/code]

sneekula 969 Nearly a Posting Maven

Something like this can do:

import datetime

today = datetime.date.today()
yesterday = (today + datetime.timedelta(days=-1))

filename = "CF" + yesterday.strftime("%m%d%y") + ".csv"
print filename  # for instance --> CF092108.csv
sneekula 969 Nearly a Posting Maven

Go to:
http://www.daniweb.com/code/c.html
and search for:
image

sneekula 969 Nearly a Posting Maven

What's the preferred way to pass a string to and from a function?

sneekula 969 Nearly a Posting Maven

Interesting Game!

sneekula 969 Nearly a Posting Maven

Wow, great art!

sneekula 969 Nearly a Posting Maven

Only in America! Proud to be an American car buff!

sneekula 969 Nearly a Posting Maven

Keep trying, they do listen!

sneekula 969 Nearly a Posting Maven

Other: hanging, drawing, and quartering comes to mind.

First hang them from the neck until NEARLY dead.
Next drag them through the city behind a horse (or car).
Then tear out their intestines out of their living bodies.
After that attach each limb to a horse (or car) and tear them off.
Display the parts across the country.

Worked wonders against enemies of the Crown.

Wouldn't it be easier to just stick them into Abu Ghraib?

sneekula 969 Nearly a Posting Maven

Ernest Bevin (England Politico):
"If you let that sort of thing go on, your bread and butter will be cut right out from under your feet."

sneekula 969 Nearly a Posting Maven

Oh no!!!!

sneekula 969 Nearly a Posting Maven

As long as you're working, you stay young.

sneekula 969 Nearly a Posting Maven

Pirate Meeting Fun:
http://www.eonline.com/uberblog/b29981_yo-ho_yo-ho_some_booty_pirate_day.html

Got to leave! Got to run over to Arrrrrrrrrrrrrrby's for one of those great sandwiches.

sneekula 969 Nearly a Posting Maven

Alan Alda:
"It isn't necessary to be rich and famous to be happy. It's only necessary to be rich!"

sneekula 969 Nearly a Posting Maven

One of those 'all bran good for you muffins' (tastes much like sawdust) and a mug of café au lait.

sneekula 969 Nearly a Posting Maven

McCain yesterday:
"The chairman of the FEC needs to resign ....."
Imaginary Lieberman whispering in the old man's ear:
"Dear, the FEC is the Federal Election Commission. You should have said SEC!"

sneekula 969 Nearly a Posting Maven

Come on people, you need to do your homework yourself or you will not learn anything! Salem's advice is your best start.

sneekula 969 Nearly a Posting Maven

The widget wx.FileDialog() is most likely in the core DLL of wx, which is written and compiled C++. So the button label of the widget itself cannot be altered without going back to the C++ source code and recompiling. Not a task for the faint at heart.

You could however write a custom file dialog using wx.Dialog() yourself and use that.

sneekula 969 Nearly a Posting Maven

Hey Dude you are good!

sneekula 969 Nearly a Posting Maven

Wow, tough test!

sneekula 969 Nearly a Posting Maven

Massage Parlor:
"It's great to be kneaded."

sneekula 969 Nearly a Posting Maven

Nice game, got 301 ~~~

sneekula 969 Nearly a Posting Maven

It works!

sneekula 969 Nearly a Posting Maven

Yeah Dude, nice find!

sneekula 969 Nearly a Posting Maven

Cool indeed!

sneekula 969 Nearly a Posting Maven

Found one more in todays paper:
Hillary Clinton On Welfare

sneekula 969 Nearly a Posting Maven

"There is no remedy for love but to love more."

sneekula 969 Nearly a Posting Maven

The most common speed limit sign in the United States is 25 m.p.h.

sneekula 969 Nearly a Posting Maven

Everybody needs one of these under the tree!

sneekula 969 Nearly a Posting Maven

Take it from there!!

sneekula 969 Nearly a Posting Maven

Infertility Unlikely To Be Passed On

sneekula 969 Nearly a Posting Maven

Q: "What's the difference between a Porsche and a hedgehog?"
A: "A hedgehog has its pricks on the outside."

sneekula 969 Nearly a Posting Maven

While the fates permit, live happily; life speeds on with hurried step, and with winged days the wheel of the headlong year is turned.