Search Result

Collapse
22 results in 0.0047 seconds.
Keywords
Members
Tags
tkinter
  •  

  • nihilium
    started a topic Tkinter text widget - check if the text is edited

    Tkinter text widget - check if the text is edited

    Using Tkinter in Python 2.7.

    What I need is to be able to check regularly if the text in the widget has been changed. Ideally, I would have been able to call a function each time a change to the text was made or the widget was used, but this seems impossible.

    More specifically, I want to be able to have a label change between "original", "altered", "empty" and "new". Where e.g....
    See more | Go to post

  • unsupported operand type(s) for +: 'instance' and 'int'

    Hi:
    I tried to make two buttons that when I click it, the text in the label will increase or decrease. But python told me that "unsupporte d operand type(s) for +: 'instance' and 'int'" on "labeltext1.set (labeltext1 + 1)" and "labeltext1.set (labeltext1 - 1)". Could you help me solve it? Thanks very much!!

    Code:
    def Increase(labeltext1):
        for a in range (0, 100): 
            labeltext1.set(labeltext1
    ...
    See more | Go to post

  • Peter Kr
    started a topic Tkinter Reloading Window displaying an Image

    Tkinter Reloading Window displaying an Image

    Hi,
    I've been searching for this on google for a while, but I didn't find anything.
    I want to display an Image inside a Tkinter Window, but the Window should refresh the image every second or so.
    How do I do that?
    My Code so far:
    Code:
    import Tkinter 
    import Image, ImageTk
    
    im = Image.open('temp.png')
    
    root = Tkinter.Tk()
    tkimage = ImageTk.PhotoImage(im)
    ...
    See more | Go to post

  • How to close "Tk" Window without closing whole GUI

    Hi, I am writing a program, in which everything interesting happens in a Toplevel window that I have made. However, whenever I run the program, I get both the standard Tk window and the Toplevel window that I made. How do I get rid of the first Tk window, without closing out of the program completely?

    Thanks

    Code:
    #Merthe's Ellipse Adjustment Program February 2012
    
    import numpy
    import scipy
    ...
    See more | Go to post

  • 2inshix
    started a topic Pass text variables to Labels in Tkinker GUI?

    Pass text variables to Labels in Tkinker GUI?

    I'm trying to put together this GUI, it's my first attempt. It's mostly a collage of code I put together from samples I found here and there.

    So, far so good, except I can't seem to be able to figure out how to pass "text variables" from an array to labels.

    #If you go to def printLabels(sel f), and def on_move(), you will see what I mean:),

    Thanks a million. (I'm just learnig to #program, sorry about...
    See more | Go to post
    Last edited by 2inshix; Dec 19 '11, 12:33 AM. Reason: Spellin/grammar/typos

  • Jay Samson
    started a topic change a variable thru a dialog box

    change a variable thru a dialog box

    How do I change a variable thru an entry dialog box in tkinter or python, as x = 1 and the user changes it to x = 2?? I can't seem to find the answer.
    See more | Go to post

  • How to save the value of a global variable in a file

    Hi I'm tryin to create a game but I have a question in how to save (saveasfile) the value of a global variable.. and then load the same value with openfile.

    Also for example you have a main label and a botton on the left.... so when you click the left bottom the label will change or refresh to another label and when you return to the original label show or refresh to the original one. All the work is with matrices in python 3.2 and...
    See more | Go to post

  • Tony Chamberlai
    started a topic Problems with redrawing tables

    Problems with redrawing tables

    I am learning how to use tktable. I made a table and put some data in it which appeared. I want to put it into a loop and change the data 5 or 6 times. Right now I am just putting simple data in until I get it to work correctly, just to verify the tables is updated. Later I will put specific data.

    My problem though is, I create the array, fill it, pack it, then change the data, pack it, change, and then pack, but it only ever shows...
    See more | Go to post
    Last edited by Niheel; Apr 29 '11, 08:26 PM.

  • PyGIS
    started a topic GUI programming in python

    GUI programming in python

    HI:

    i want to start learning GUI programming in python but i dont know which tools or library (tkinter ، pyqt ، WXpython) is best . which one is easy to learn ?

    please help me .
    sincerely
    See more | Go to post

  • Can the window size of tfFileDialog be changed?

    The tkFileDialog module is a handy tool for opening and saving files in Python GUI's with TkInter. However, the pop-up window generated by, e.g., tkFileDialog.as kopenfilename is rather small (though it can be resized manually). Is there a possibility to resize it automatically?
    See more | Go to post

  • Benno
    started a topic Tk, OSX, PYTHON application menu override

    Tk, OSX, PYTHON application menu override

    OSX 10.5.8
    Python 2.5.1
    Tkinter is the version that comes with OSX.

    When I attach menus, it works fine, but there's that Python menu to the left where the application menu should be. In order to create the look and feel of a standard application, that's got to go... but I can't find any documentation on how to do it in Python.

    There are allusions to a "special" apple menu keyword, but I've so...
    See more | Go to post

  • nk28
    started a topic Combined event handling on Tkinkter

    Combined event handling on Tkinkter

    Hey

    I am making a GUI Program in Tkinter and am running into problems.What I want to do is draw 2 checkboxes and a button. According to the user input next steps should take place. A part of my code has been shown below :-
    Code:
    CheckVar1 = IntVar()
    CheckVar2 = IntVar()
    self.C1 = Checkbutton(root, text = "C Classifier", variable = CheckVar1, onvalue = 1, offvalue = 0, height=5,width = 20).grid(row=4)
    ...
    See more | Go to post

  • Linking certain filenames in a directory and a dictonary?

    Hi. I'm trying to get my feet wet with programming and keep hitting some brick walls.

    I basically want to look in a folder for certain filenames. If the files are there, I would like the term linked to the filename to be in a listbox.

    I thought a dictionary would work:
    Code:
    dataset = { "File1.txt":"Picotiter Plate",
                        "File2.txt":"KeyPass Wells",
    ...
    See more | Go to post

  • sometingsometing
    started a topic dont know whats wrong?

    dont know whats wrong?

    hi,
    I am new and dont know what went wrong.

    Code:
    from Tkinter import *
    import tkMessageBox
    from pysqlite2 import dbapi2 as sqlite
    
    class door:
    	global simpleprint
    	def __init__(self,master):
    		frame = Frame(master)
    		
    		
    		self.lable1 =Label (frame,text ="ID")
    		self.lable1.grid(row =0)
    		self.lable2 = Label (frame,text = "Password")
    ...
    See more | Go to post

  • 360monkey
    started a topic Console in Tkinter GUI

    Console in Tkinter GUI

    Hi Bytes Community!

    I am using tkinter to create a GUI and was wondering how to make a "console" widget embedded in the GUI. Sort of like the python command line but inside the GUI

    Thanks in advance!
    See more | Go to post
Working...