User Profile

Collapse

Profile Sidebar

Collapse
AdamGr
AdamGr
Last Activity: Aug 7 '08, 09:14 PM
Joined: Jun 27 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • AdamGr
    started a topic adding arguments to buttons

    adding arguments to buttons

    Using tkinter, how does one add arguments to functions called by buttons? For example I have the line:

    Code:
     b = Button(parent, command = self.login)
    but what if self.login has parameters, like requiring a username parameter and password parameter? commands called by buttons, or any tkinter object, don't seem to have any way to send arguments to the functions that they call. I have of course tried:

    Code:
     b = Button(parent,
    ...
    See more | Go to post

  • AdamGr
    replied to No module named...
    O_o never mind, I tried running the program 5 times in a row and the fifth time it ran fine, and didn't give me an error. FSM help me...
    See more | Go to post

    Leave a comment:


  • AdamGr
    started a topic No module named...

    No module named...

    I'm in the process of writing a program that connects to a MySQL database using the MySQLdb module. I got it installed, and my program worked perfectly....un til i logged off my Mac. When I logged back on, my program crashed at the outset with "No module named MySQLdb". Obviously there is a path variable or file somewhere that got reset, but I don't know where python looks for its modules. Any help?

    Thanks,
    Adam
    See more | Go to post

  • AdamGr
    started a topic Procedure: error -1?

    Procedure: error -1?

    This must be a pretty newbie mistake, but I'm still flummoxed by it. I created a very simple procedure:

    Code:
     create procedure deleteAll ()
    begin
    delete from test1;
    delete from test2;
    end
    but when I run it I get a Error code -1: Error executing SQL command.

    The strangest part is that it still does what its supposed to, the data IS deleted from those two tables. So if its necessary...
    See more | Go to post

  • AdamGr
    replied to py2app chokes on MySQLdb
    oy, ok thanks. I just discovered some major bugs in my code, so I'm gonna hold off on converting it for a little while.
    See more | Go to post

    Leave a comment:


  • AdamGr
    started a topic py2app chokes on MySQLdb

    py2app chokes on MySQLdb

    I am currently trying to convert a program I just wrote to application form, on the Mac. I'm using py2app to accomplish this, and everything works fine up until the last stage; when I try to complete the conversion with:
    Code:
     python setup.py py2app
    and then run the resulting executable, I get the error:
    Code:
     ImportError: No module named MySQLdb
    The really strange thing is that when I was testing the application creation by making...
    See more | Go to post
No activity results to display
Show More
Working...