User Profile

Collapse

Profile Sidebar

Collapse
sudiptachatterjee
sudiptachatterjee
Last Activity: Nov 8 '07, 10:21 AM
Joined: Apr 13 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sudiptachatterjee
    replied to Memory error in python
    Okay, so I have run into the same problem, and the offending statement is this:

    Code:
     tempHolder[followWord] = 0
    The tempHolder is a dictionary whose length can run into a really BIG number, because I am trying to go through an entire corpus of text and counting occurences of each word, so to say. Any ideas about how I can specify to Python that it needs to be prepared for such big lengths of the dictionary? Or is this a...
    See more | Go to post

    Leave a comment:


  • sudiptachatterjee
    replied to Right click on Mac with Tkinter
    Thanks a lot for the reply. But I am not being able to bind to the right-click in the first place. In your example, when I use
    Code:
    from Tkinter import *
    if __name__ == "__main__":
        root = Tk()
    
        def OnButton(event):
            print event.state
    
        button = Button(root, text='test')
        button.bind("[B]<Button-3>[/B]", OnButton)
        button.pack()
    ...
    See more | Go to post

    Leave a comment:


  • sudiptachatterjee
    started a topic Right click on Mac with Tkinter

    Right click on Mac with Tkinter

    Hi everyone,

    I am building a GUI app using python and Tkinter. I used bind() to attach the right-click event on <Button-3> for executing some commands (to popup a menu, specifically) --- and it is working fine on the PC. However, on a Mac laptop or machine, it just doesn't work (using Ctrl-Click, that is).

    I found this old thread in the archives too: http://www.thescripts.com/forum/thread493721.html but there...
    See more | Go to post
No activity results to display
Show More
Working...