User Profile

Collapse

Profile Sidebar

Collapse
drewski526
drewski526
Last Activity: Feb 27 '08, 11:01 PM
Joined: Jan 31 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • drewski526
    started a topic Update Idle Tasks

    Update Idle Tasks

    Hi all,
    I am running a fairly cpu intensive program, and i would like to show a progress bar to let the user know that the program is working. In the progress bar module, i would like to add a bit of code that allows me to call the module, and then execute the rest of the code. for instance:
    Code:
    import progressbar
    progressbar.run()
    generate_keys() #while progressbar is still running
    I'm sorry if im being...
    See more | Go to post

  • hi,
    you're only problem is that a root window is automatically created when you call tkFileDialog.as kopenfile().
    for instance, try this:

    Code:
    from Tkinter import *
    import tkFileDialog
    root = Tk()
    root.withdraw()
    file = tkFileDialog.askopenfile(parent=root)
    file_read = file.read()
    the last line is just there to read the file.
    See more | Go to post

    Leave a comment:


  • drewski526
    replied to Disapearing Icons from a Label Frame!
    Sorry guys,
    I fixed it, it had to do with the way is was packing the buttons.
    Thanks anyway!
    See more | Go to post

    Leave a comment:


  • drewski526
    replied to What is your OS and Python Version
    I'm running Windows XP with Python 2.5 and Tkinter 8.4. Notepad 2.0 for my IDE.
    See more | Go to post

    Leave a comment:


  • Hey,
    Check out http://effbot.org/tkinterbook/, it has a bunch of info on canvas's and other widgets.


    Code:
    from Tkinter import *
    import random
    
    root = Tk()
    frame = Frame(root)
    frame.pack()
    global c
    c = Canvas(frame, width=200, height=200)
    c.pack()
    def generate(event):
      r1 = random.randint(1,200)
      r2 = random.randint(1,200)
      r3 =
    ...
    See more | Go to post

    Leave a comment:


  • drewski526
    started a topic Disapearing Icons from a Label Frame!

    Disapearing Icons from a Label Frame!

    Hi,
    I wrote a small part of a larger program, and oddly enough, when i try to run it, the icons spontaneously appear and disappear when i mouse over them.
    Code:
    background_img = Image.open('icons\\background.bmp')
    background = ImageTk.PhotoImage(background_img)
    buttons = Label(root, image=background, height=100, width=400)
    buttons.pack()
    exitB = Button(buttons, width=32, height=32, image=exit_Button,
    ...
    See more | Go to post
No activity results to display
Show More
Working...