User Profile

Collapse

Profile Sidebar

Collapse
Jonah
Jonah
Last Activity: Nov 19 '15, 09:29 PM
Joined: Sep 13 '15
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Jonah
    started a topic Tkinter toplevel dropdown window?

    Tkinter toplevel dropdown window?

    I want to have a dropdown window like this one



    and I found a way you can do is on a Linux here using `wm_type()` but it does not work on Macintosh. How would I make a similar window on a mac? I assume I would need to use a top-level?...
    See more | Go to post

  • Jonah
    started a topic How to save a dictionary over multiple uses

    How to save a dictionary over multiple uses

    I am creating a login script and I store the usernames and passwords in a dictionary. The problem is though, when I open it a second time it doesn't store the users that have already been registered. I know this is normal but is there a way to get round that? Perhaps using a file?

    Note: I asked this on Stackoverflow and got no answer so i am re asking. That is why I am trying to use Pickle.

    Here is my code:
    ...
    See more | Go to post

  • Jonah
    started a topic How to update Tkinter labels using a button.

    How to update Tkinter labels using a button.

    Hi I am trying to create a simple program that writes a few lines to a file then displays those lines in labels below. The labels don't update though when I update the file and I have tried
    Code:
    update_idletasks
    but it doesn't work. Here is my code:

    Code:
    from Tkinter import *
    import sys
    f=open("stats")
    line1=f.readline()
    line2=f.readline()
    line3=f.readline()
    line4=f.readline()
    ...
    See more | Go to post
No activity results to display
Show More
Working...