Ene Uran 638 Posting Virtuoso

Only our friend vmanes could come up with a jewel like that, thanks!

Ene Uran 638 Posting Virtuoso

The Russians used cocktails against German tanks with success. No wonder the Krauts lost that war too. I drink to that!

Ene Uran 638 Posting Virtuoso

Just ate part of a bottom-dwelling decapod with compound eyes, long antennae, the first pair of legs of the beast were large, powerful pincers, that turned bright red when I boiled it.

Ene Uran 638 Posting Virtuoso

I learned to eat lobster.

Ene Uran 638 Posting Virtuoso

Programming with C++ is real easy and shouldn't give you any problems. If it does, we have a very helpfull C++ forum at DaniWeb with he brightest minds to be found anywhere just waiting for your questions.

Ene Uran 638 Posting Virtuoso

Here is McCain's best chance to win the election! Obama has to leave the campaign for a few days to tend to his ailing grandmother, the woman that raised him.

Dave Sinkula commented: Y'know, as blatantly partisan as I am I haven't taken it upon myself to use this as political fodder -- for or against. -3
Ene Uran 638 Posting Virtuoso

Let the computer do the programming for you!

Ene Uran 638 Posting Virtuoso

The father of all trickle-down theories, George W. Bush (Lancaster, PA 10/03/2007):
"You know, when you give a man more money in his pocket -- in this case, a woman more money in her pocket to expand a business, it -- they build new buildings. And when somebody builds a new building somebody has got to come and build the building. And when the building expanded it prevented additional opportunities for people to work."

Ene Uran 638 Posting Virtuoso

The old saying,
"If you own a thousand Dollars to the bank, it's your problem. If you own a million Dollars to the bank, it's the bank's problem!"
has to be amended to,
"If you own a thousand Dollars to the bank, it's your problem. If you own a million Dollars to the bank, it's the taxpayers' problem!"

Ene Uran 638 Posting Virtuoso

I think you are confusing eval() with exec():

import pickle

y = "x = 5"

open_file = open("pickle_file.pkl", "wb")
pickle.dump(y, open_file, -1)
open_file.close()

del y

newly_opened = open("pickle_file.pkl", "rb")
loaded = pickle.load(newly_opened)
newly_opened.close()

# test
print loaded, type(loaded)  #  x = 5 <type 'str'>

exec(loaded)
print x      # 5
Ene Uran 638 Posting Virtuoso

I understand that "Joe the Plumber" got livetime contract from McCain to fix the plumbing in McCain's numerous houses.

Ene Uran 638 Posting Virtuoso

Barack Obama came to Toledo in Ohio, that is not Joe Wurzelbacher's home town, so how could he play football on his front lawn and see Obama? Well, if Palin can see Russia from her house?

Ene Uran 638 Posting Virtuoso

If you google "Wurzelbacher Keating" you find this:
December 13, 1993
Robert M. Wurzelbacher Jr., a son-in-law of the former head of Lincoln Savings, Charles H. Keating Jr., must surrender next year to begin a 40-month prison sentence. Wurzelbacher has pleaded guilty to three counts of misapplying $14 million from Lincoln, an Irvine, Calif., savings association.
http://query.nytimes.com/gst/fullpage.html?res=9F0CE7DE123CF930A25751C1A965958260

Charles H. Keating Jr. is a good friend of John McCain.

Ene Uran 638 Posting Virtuoso

I just read that the thing won't be operational till next Spring. They have to unthaw it to fix the electrical connection of one of the massive magnets.

Ene Uran 638 Posting Virtuoso

Toy guns don't kill toy people, toy people do.

I am with you!

Ene Uran 638 Posting Virtuoso

The whole McCain campaign reminds me more and more of Elmer Fudd hunting Bugs Bunny and injuring himself in the process.

Now we are finding out that McCain's hero "Joe the Plumber" is not a plumber, but a construction worker that has previously appeared on a number of right wing talk shows.

From a friend in Ohio:
Joe Wurzelbacher, "Joe the Plumber", doesn't have a business license in Ohio -- he doesn't even have a license to be a plumber in Ohio -- he doesn't have a listing in the Toledo area yellow pages or white pages, and he's not even registered to vote!

He claims that Obama's economic policies will drive him into poverty, take his kids away, repossess his big screen tv, wreck his car and kill his dog.

Ene Uran 638 Posting Virtuoso

Since this is ostensibly still a poll, I happened upon a related poll today:
http://www.militarytimes.com/static/projects/pages/081003_ep_2pp.pdf

You forgot the Fox News Poll that has McCain winning by 87%.

Ene Uran 638 Posting Virtuoso

http://www.youtube.com/watch?v=foSW-CkWbqI
Just plain old Fox News Obama smear! Obama has clearly distanced himself from abortion in the last debate, otherwise the Catholic Church wouldn't have invited him for the Al Smith Dinner.

Here are some of Obama's remarks at the Dinner:

People tell me I share the politics of Alfred E. Smith and the ears of Alfred E. Newman.

I got my name Barack from my father .... it's actually Swahali for "That one."

There was a point in my life when I started palling around with a pretty ugly crowd .... that's right .... I've been a member of the United States Senate.

Ene Uran 638 Posting Virtuoso

i am losing my mind
the past year has been hell for me
my doc won't listen
nobody takes me seriously
i cannot do anything for myself
i am a complete mess
i have tried suicide,but i have 2 kids and a dad who will pay the price
and i am a coward
i see no way out of this
why does god make me suffer?
kat

If you are a Veteran, you can go to a Veteran's Hospital.

Ene Uran 638 Posting Virtuoso

A flat TV is heavier and makes a better paper weight.

John A commented: Now that's just BS. Have you ever picked up a 30" CRT television? -3
Ene Uran 638 Posting Virtuoso

God Bless Photo Studio

Ene Uran 638 Posting Virtuoso

According to Fox News Senator John McCain has clearly won the third debate against that one.

I would say overwhelmingly is the better word. A poll of Fox News viewers had McCain winning the third debate by 87% that is 1% higher then the poll after the second debate! Judging from the folks I know that watch Fox News it should have been 100% for McCain! Where went Fox wrong?

We also learned that John McCain is not George Bush. I am sure a lot of folks are disappointed!

Ene Uran 638 Posting Virtuoso

Actually Python30 has made quite a number of changes that will make a beginner stumble when using much of the existing code samples.

I would recommend using Python25 or Python26 to get started. Python30 is still too early to play with for beginners and important modules like pygame and wxpython are not available yet.

Ene Uran 638 Posting Virtuoso

In addition I think using int(raw_input()) is the best practice!

Python30 has done away with raw_input() and simply uses input() which returns a string. So now you have to use int() to convert the string to an integer.

Test it out with:

i = input("Minutes till shutdown: ")
print(i, type(i))

Just be aware of some of the more radical changes that Python30 brings when you want to use much of the existing sample code. The Python30 installation comes with a file 2to3.py ( in directory .\Python30\Tools\Scripts ) that converts Python2x code to Python3x code.

Ene Uran 638 Posting Virtuoso

The simple IDE called "IDLE" that is supplied with the usual Python installation has interactive code completion for Python's many builtin functions. The IDE "DrPython" is similar, but gives you a lot more detail what the function does in its popup window.

Ene Uran 638 Posting Virtuoso

The Maverick? Saying it and doing something about it is different!

Ene Uran 638 Posting Virtuoso

It's the Economy Stupid!

Ene Uran 638 Posting Virtuoso

Most 'toy guns' that children shoot are in their video games. Much more realistic since much blood, brain matter, bones and guts are visually spilled.

Even some nations' military are training their soldiers on video games now.

-- and if they don't have a toy gun or video game, they see guns and death on any TV channel.

Yeah, not allowing your children to play with a toy gun is rather hypocritical and
pretentious

Ene Uran 638 Posting Virtuoso

Why do Conservatives think that being a Muslim or Arab is so bad?

Good question! In some of the rallies, folks have come up to McCain telling him they hate or fear Obama because he is a Muslim or Arab.

Ene Uran 638 Posting Virtuoso

Rule on England :)
As you can tell i am english and think that i could run the country better than the current idiots in charge. They are making a stupid hash job of the economy and we are all screwed!

Hehe :)
You should have ruled the country before it got all screwed up, much easier! After all, an ounce of prevention is worth a ton of correction! I assume England isn't the only country in Europe that is all screwed up?

Whatever happened to the one guy we called Bush's Poodle? Can't remember his name, it started with a B me thinks!

Whatever happens, please keep the fantastic British humour going!

Ene Uran 638 Posting Virtuoso

I find it strange that Obama is one unknown stranger, possibly a muslim or terrorist, after two years of running for president, being looked over by thousands of experts. On the other hand Palin became "one of us" after less than two hours, coming from the unknown wilderness of Alaska.

Well said!

Another Senior Moment:

McCain: "Who is Barrack Obama?"
Voter1 : "Have you forgotten?"
Voter2 : "If you would read the newspapers, you would know!"
Voter3 : "He is that one, remember that one."

Lieberman whispering into McCains ear:
"Ask Sarah, she has him all figured out."

Ene Uran 638 Posting Virtuoso

Yes, you can use Tkinter. Here is a hopefully helpful explanation how Tkinter draws circles that follow a mouse click. The basics are there, you just have to apply them to your problem:

# draw a circle with given center (x,y) and radius at mouse click point

import Tkinter as tk

def draw_circle(event):
    '''
    draw a circle with a given radius and the mouse position center (x,y)
    '''
    x = event.x
    y = event.y
    radius = 40
    # to draw a circle you need to get the upper left
    # and lower right corner coordinates of a square
    rect = get_square(x, y, radius)
    # draw the cicle that fits into the rect/square
    circle = cv.create_oval(rect)

def get_square(x, y, radius):
    '''
    given the center=(x,y) and radius
    calculate the square for the circle to fit into
    return x1, y1, x2, y2 of square's ulc=(x1,y1) and 
    lrc=(x2,y2) diagonal corner coordinates
    '''
    x1 = x - radius
    y1 = y - radius
    x2 = x + radius
    y2 = y + radius
    return x1, y1, x2, y2

# create the basic window, let's call it 'root' 
root = tk.Tk()
root.title("click the mouse on the green area")

# create a canvas to draw on
cv = tk.Canvas(root, width=600, height=600, bg='green')
# position the canvas
cv.grid()

# respond to the mouse as it is clicked
root.bind("<Button-1>", draw_circle)

# start the event loop
root.mainloop()
Ene Uran 638 Posting Virtuoso

Just plain old smear and hate. This kind of stuff turns the USA into a DSA.

Ene Uran 638 Posting Virtuoso

Maybe this short example will help:

# reference across class instances
# from one panel class to another panel class

import wx
import time

class MyPanel1(wx.Panel):
    def __init__(self, parent):
        wx.Panel.__init__(self, parent, wx.ID_ANY,
            pos=(0,0), size=(300, 100))
        self.SetBackgroundColour("green")
        self.button = wx.Button(self, label=" panel1 button ")
        self.button.Bind(wx.EVT_BUTTON, self.buttonClick )

    def buttonClick(self, event):
        """
        use the panel2 label and
        reference via the parent --> frame
        """
        #  display something that indicates a change
        s = time.strftime("%H:%M:%S", time.localtime())
        frame.panel2.label.SetLabel(s)


class MyPanel2(wx.Panel):
    def __init__(self, parent):
        wx.Panel.__init__(self, parent, wx.ID_ANY,
            pos=(0, 100), size=(300, 100))
        self.SetBackgroundColour("yellow")
        self.label = wx.StaticText(self, wx.ID_ANY, " panel2 label ")


app = wx.App(0)
# create a frame, no parent, default ID, title, size
caption = "wx.Panel()"
frame = wx.Frame(None, wx.ID_ANY, caption, size=(300, 220))

# note that frame is the parent for the two panels
frame.panel1 = MyPanel1(frame)
frame.panel2 = MyPanel2(frame)

frame.Show(True)
app.MainLoop()
Ene Uran 638 Posting Virtuoso

Works great with an XP, so it could be Vista that srews things up.

# send text to the clipboard

import win32clipboard

def txtToClipboard(iTxt):
    win32clipboard.OpenClipboard(0)
    win32clipboard.EmptyClipboard()
    win32clipboard.SetClipboardText(iTxt)
    win32clipboard.CloseClipboard

txtToClipboard('text to paste')

# test
# or use paste in the editor window
data = win32clipboard.GetClipboardData()
print data
Ene Uran 638 Posting Virtuoso

Wow, for the few souls that live in Alaska, the oil revenue would make them all millionaires. On top of that, they can charge the US for all those military bases.

Ene Uran 638 Posting Virtuoso

If you honestly believe either one of them are conservative, you are mistaken.
George Bush is not a conservative, neither is John McCain. But then, if you don't know that, there's not much you should say about conservatism, and little credibility you would have concerning whatever you say about liberalism.

You won!

Ene Uran 638 Posting Virtuoso

Ah, The Great Lord, Serunson!
Welcome back, we remember your exceptional intestinal fortitude, wit and wisdom well. Where is your ever so menacing companion, the super poster, what's his name?

Ene Uran 638 Posting Virtuoso

Sounds like a great idea to me! The cabbies here in LA are maniacs, well they have to be!

Ene Uran 638 Posting Virtuoso

Oh boy, that stuff sounds old!

Ene Uran 638 Posting Virtuoso

> drink her pretty
Just how much drink was drunk in that last picture? :twisted:

Not much, I think they really like each other.

Ene Uran 638 Posting Virtuoso

A blonde and her boyfriend walk on the beach. he says, "Hey honey, look at that dead bird!"
She looks up at the sky and says, "Where?"

Ene Uran 638 Posting Virtuoso

I stand corrected, Conservatives like their own kind.

Ene Uran 638 Posting Virtuoso

The arch liberal

Ene Uran 638 Posting Virtuoso

Brave stuff!

Ene Uran 638 Posting Virtuoso

Great spooky stuff there Dude!

Ene Uran 638 Posting Virtuoso

HeHe, a lot better than than the actual show!

Ene Uran 638 Posting Virtuoso

Conservatives are me, me, me and don't give a hoot about their fellow human beings.

Libertarians believe in full individual freedom of thought, expression, and action.

Ene Uran 638 Posting Virtuoso

Why not do it on the forum so all of us can learn?

Ene Uran 638 Posting Virtuoso

Well, we can bring up Charles Keating, McCains very close buddy who went to jail because he robbed thousands of seniors of their life's savings. Then comes the way McCain dumped his first wife after she got sick. Now you are talking of someones character and judgment stinking!