Money won't buy you friends, but it will get you a better class of enemy.
sneekula 969 Nearly a Posting Maven
Money won't buy you friends, but it will get you a better class of enemy.
Made a big pot of spaghetti with homemade basil-mushroom meat sauce for an Italian party with a number of my friends.
Interesting thread!
Awww. Two leaches on the back of working folk.
????????????????
What America really needs!
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.
Creative people use Macs.
It's a time of sorrow and sadness when we lose a loss of life.
uu
Parts of a dead chicken, grilled, spongy wonderbread and budwiser beer (God, what a swill!)
Rembrandt painted 700 pictures. Of these, 3,000 are still in existence.
Some days you're the dog - some days you're the hydrant.
There is ample evidence that work can be enjoyable, and that indeed, it is often the most enjoyable part of life.
An old imperial motto:
"When in doubt, escalate the war!"
You might want to move this to TechTalk Hardware, that's were the experts are.
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.
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()
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]
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
What's the preferred way to pass a string to and from a function?
Interesting Game!
Only in America! Proud to be an American car buff!
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?
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."
As long as you're working, you stay young.
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.
Alan Alda:
"It isn't necessary to be rich and famous to be happy. It's only necessary to be rich!"
One of those 'all bran good for you muffins' (tastes much like sawdust) and a mug of café au lait.
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!"
Come on people, you need to do your homework yourself or you will not learn anything! Salem's advice is your best start.
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.
Massage Parlor:
"It's great to be kneaded."
Yeah Dude, nice find!
Found one more in todays paper:
Hillary Clinton On Welfare
"There is no remedy for love but to love more."
The most common speed limit sign in the United States is 25 m.p.h.
Everybody needs one of these under the tree!
Take it from there!!
Infertility Unlikely To Be Passed On
Q: "What's the difference between a Porsche and a hedgehog?"
A: "A hedgehog has its pricks on the outside."
While the fates permit, live happily; life speeds on with hurried step, and with winged days the wheel of the headlong year is turned.