1,133 Topics

Member Avatar for
Member Avatar for Aiban

Hello. I can't believe i'm stumped on this ok .. main menu again ..... nice fat quit button .. works great quit = Button(root, text = 'Quit', command = root.quit) awesome work hey .... i also have an about window (cleverly called awin) .. click it .. it tell you …

Member Avatar for vegaseat
0
277
Member Avatar for Aiban

Hi Everyone. Consider this part two after solving part one of my output window issie basically 7zip i needed to output its text to a output window i had created inside my main menu where the button "backup" exists. The window within the window code looks like this. [code] outputLabel …

Member Avatar for shadwickman
0
111
Member Avatar for Aiban

Hello Everyone Thanks for the message of welcome in a previous post. I have many questions but i have sleected this one as it represents my favourite piece of not working code (hahaha) but it has been studied and altered so i got this bugger working .. mostly . Explain: …

Member Avatar for Aiban
0
10K
Member Avatar for foosion

Is there a way to place widgets on pixel coordinates rather than row, column coordinates in tkinter? For example, if I'm using grid, if I have a 20x10 Text box at row 0, column 0 and want to place three buttons to the right of the textbox, one button over …

Member Avatar for Aiban
0
151
Member Avatar for Icklebitt

Hi, I have recently started trying to teach myself python, I've watched a few video tutorials and am reading "Learning Python". I have been making an Mp3 player and have hit a point that I cant work my way past so was hoping some kind person here could help me …

Member Avatar for Icklebitt
0
2K
Member Avatar for foosion

I have a tkinter/python program which does something time consuming when I push a button. I'd like to give the user progress reports by updating a label field at each stage of the time consuming process. If have simple loop to the effect [code] for x in y: dosomething(x) self.label1.config(text …

Member Avatar for foosion
0
203
Member Avatar for jayrodau

I am looking for a xml creator/editor with treeview using Tkinter. I want to be able to load and save changes. Any help would be greatly appreciated or snippets. Thanks!

Member Avatar for vegaseat
0
1K
Member Avatar for pluring

Hi! I'm very new to both python and Tkinter and would be thankful for some help. i want to search a text document for a word and print each line that match the searchword in a text widget. [CODE]def ladda(): fts = 'thefile.txt' file = open(fts,"r") text = file.readlines() file.close() …

Member Avatar for pluring
0
2K
Member Avatar for Heftiger

I'm in the process of writing my first python program with a GUI just as practice. I have two listboxes that are packed in the same frame so they are side by side. I have one scroll bar and would like that one scrollbar to move both listboxes simultaneously since …

Member Avatar for Ene Uran
0
2K
Member Avatar for freddiecool

Hi, could anyone help me updating my pictures and texts. The first picture and text is okay but then the next just gets added in the same textarea instead of "refreshing the page" and adding the next "page" with a pic and text. I also get this error message. screen.delete(0.0, …

Member Avatar for freddiecool
0
174
Member Avatar for happymadman

Is there an easy way to handle input from an entry box, in my project I am working on I have to call functions twice which ends up making a large mess of everything. Like if I call the [code=python] import tkMessageBox from Tkinter import * def yes_no_ask(answer): guidisplay.actiondisplay.configure(state=NORMAL) guidisplay.actiondisplay.insert(INSERT, …

Member Avatar for woooee
0
180
Member Avatar for happymadman

So I have this simple list and scroll bar combo and I have been trying to make it stay at the bottom of the scroll bar as the text is added so it looks like the scroll bar is just to look back over the previous text. Like in a …

Member Avatar for kolosick.m188
0
108
Member Avatar for Nidhi G

Hi I wish to write a program that will perform some action on a key press event but if there is no key press in a certain period of time say 10 seconds, it should display an error message and exit. I am working on windows and am using the …

Member Avatar for Hummdis
0
320
Member Avatar for firegenius

Hi everyone, I am trying to build application with Tkinter like a wizard, i'll use background image for application, and put some text and image to application window. But i couldn't do that. When I use background with that code, text labels background color is blocking background view. Is there …

Member Avatar for firegenius
0
4K
Member Avatar for mattyd

This demonstration was originally proposed to be posted as a Python tutorial but with further inspection it was deemed more of a "how-to" guide, in this case, how-to create simple animation via Tkinter (Tool Kit Interface) All the necessary elements are included in the attched zip file. This includes: [LIST] …

Member Avatar for vegaseat
1
244
Member Avatar for mg0959

I am using the OptionMenu with Tkinter. I have found that sometimes when I use the OptionMenu widget, I encounter a problem. After the user clicks on the OptionMenu and selects an option, sometimes other widgets such as buttons in the window will not work until the user clicks somewhere …

Member Avatar for sneekula
0
79
Member Avatar for sravan953

Hey guys! I run Windows XP(just though I'd let you guys in about it!) I have written code for a Facebook program: [CODE]import time import bz2 print print("Welcome to Facebook Secure Scratch pad. You can enter your Facebook password\nto encode and store.") print print("Please enter your Facebook password:") ps=raw_input() if …

0
62
Member Avatar for Horia.Muntean

this is the code of a "dice roller" I made the output(result of print commands) shows in the terminal/cmd is there a way to make a textbox that will show the results directly in tk? eg. "You rolled 10 on the 1d12 dice!" #shown in a tk messagebox and something …

0
68
Member Avatar for harrykokil

how do i set the input value to 150 as default? n if i enter non-integer value how can i validate it?? thanks [icode] from Tkinter import * root = Tk() lbl = Label(root, text = "Enter Number of vehicles", bg = 'blue', fg= 'white') lbl.pack() textbox = Entry(root, width="20", …

Member Avatar for vegaseat
0
89
Member Avatar for harrykokil

hi guys.. i want to disable a button in tkinter (this mean i can't click on that button) for 3 seconds if the user has already clicked on that button. how can i do that?

Member Avatar for vegaseat
0
120
Member Avatar for harrykokil

hi guys.. hw can i reset my whole software in tkinter?? as if to restart running the software?? thanks..

0
50
Member Avatar for bhanu1225

Hello All. I am working on Mac OS X. I installed Python 2.5.4 and Mysql 5.1.31. For the interface, i installed Mysql-Python 1.2.2. I did the right steps for the installation. But , getting some warnings. So, i checked in Python shell for the modules. Python 2.5.4 (r254:67917, Dec 23 …

0
63
Member Avatar for aot

Okay, so I'm thinking of taking the plunge into wxPython. But it's especially important to me to know if wxPython can do the following things easily and well: 1) Display a vertical array of radio buttons (or perhaps any buttons will do). They must have no labels, and I need …

Member Avatar for aot
0
255
Member Avatar for hyperzero4

Hello, I'm doing a project doing atomic models and am using a toolkit that was developed for Python 2.4 on Ubuntu. I have Python 2.4 installed as my default python currently; however, when I download the tools I need from the synaptic package manager. They only work for my original …

Member Avatar for woooee
0
156
Member Avatar for gbrokaw

Hey everyone, I'm writing a program with a Tkinter GUI for my job and I was wondering whether there is a way to create an icon on my desktop to start it so I don't have to start Idle and run the program from that (computer un-savvy people will need …

Member Avatar for gbrokaw
0
137
Member Avatar for harrykokil

hi guys.. ive tried to integrate a timer code (which works fine) into a tkinter window but im having errors. can u plz fix it 4 me? thanks. this is the code i want to integrate. [icode] import Tkinter as tk import time def start(): global count_flag count_flag = True …

Member Avatar for jlm699
0
118
Member Avatar for bhanu1225

Hello everyone I have created [COLOR="Red"]Tkinter application on Mac OS X.[/COLOR] [COLOR="Green"]I need to take printout for the output of that program from that application only.[/COLOR] Kindly please give me a valuable response. Regards BHANU

Member Avatar for scru
0
128
Member Avatar for harrykokil

hi every one i created a slidebar in tkinter. as i move it forward the value of a variable increases. but as i move it backwards, the value also increases. it should decrease. do u guys have a simple slidebar implemeted and which affect the value of an attribute? thanks

Member Avatar for vegaseat
0
108
Member Avatar for flip121

I am in an introductory cs course, and we have a project due in a couple of weeks. I have asked my instructor if I can ask for help here and he did allow me to post the code and ask. The project is to write a simple game where …

Member Avatar for flip121
0
1K
Member Avatar for flip121

I have a project that I am working on that is basically a game where players travel down a hall and race to the end. Obviously there are more rules but they are irrelevant for my problem. The problem I am having is that I cant get my board to …

Member Avatar for flip121
0
99
Member Avatar for harrykokil

how can i create 50 apples at different positions on screen without having to each time call the constructor 50 times? [icode] import Tkinter as tk from Tkinter import * import time class Apple(object): def __init__(self, a,b,c,d): self.rect = canvas.create_oval(a,b,c,d) root=tk.Tk() canvas = tk.Canvas(root, width=300, height=300, bg="#FFFFFF") canvas.pack() for x …

Member Avatar for lllllIllIlllI
0
150
Member Avatar for MartinIT2type

Hello again! I've started a game project for fun, and I used the knowledge I gained a few days ago from a thread I posted. Now I've taken that tried to take that (taking a text Entry out of a GUI and using it outside the class) and apply it …

Member Avatar for MartinIT2type
0
2K
Member Avatar for mangotango

I am constructing some sort of a status bar which allows the user to update their status while in a social network. It consists of an entry field and a 'update' button beside it. What I hope to do is upon activation of the button 'update' the contents in status …

Member Avatar for sneekula
0
857
Member Avatar for miller4bears6

[B]hey yall[/B] I've been working on this python program for a while and I need some help please. This program consists of classes and functions to make a basic maze. I'm not using Tkinter or any gui's. Just a printout where python does all the calculating. I have three files, …

Member Avatar for jlm699
0
185
Member Avatar for Nine Tails

I am trying to create a widget that will display information for a large number of items. This widget needs to have the following properties: 1.) Highlights a line on a left mouse click 2.) Has an accessor function that can be used to retrieve the line number that is …

0
98
Member Avatar for tomtetlaw

im doing a tut for Tkinter and in it they do this: [CODE]tkFileDialog.askopenfilename()[/CODE] but when i run it i get this error: Traceback (most recent call last): File "C:\Documents and Settings\tom\Desktop\Programing\Python\c++ + python\main.py", line 67, in <module> if __name__ == "__main__": main() File "C:\Documents and Settings\tom\Desktop\Programing\Python\c++ + python\main.py", line 64, …

Member Avatar for tomtetlaw
0
609
Member Avatar for harrykokil
Member Avatar for woooee
0
76
Member Avatar for harrykokil
Member Avatar for sneekula
0
64
Member Avatar for harrykokil
Member Avatar for Gribouillis
0
54
Member Avatar for Darkangelchick

Hey guys I have to create a python version of Tic Tac Toe, but does anyone know if it's possible to make this using Tkinter? I think I have to have it nice and bright and colourful, therefore TKinter is the only solution i can think of using Python. Any …

Member Avatar for woooee
0
651
Member Avatar for harrykokil

hi everyone, i urgently need your help for my project. I need to implement collision detection in my program. I have been trying for a month but so far I haven't found any good solution. I'm providing my piece of code hoping you guys can help me out. Thanks [icode] …

0
58
Member Avatar for billySometimes

I've decided to mess around with Tkinter and import os a bit. I'm running ubuntu 8.10, if that helps any. Here is what my program was supposed to do: have two simple buttons, one labeled 'on' and one labeled 'off'. I wanted the on button to launch nautilus and the …

Member Avatar for Gribouillis
0
93
Member Avatar for barbosmaw

HI I'm not an expierenced python programmer (yet) I want to display an image on a screen. I already installed PIL 1.1.6, and i am using the Tkinter GUI. I don't know what is missing (or were I went wrong installing the PIL), but this message <see below> is popping …

Member Avatar for barbosmaw
0
349
Member Avatar for mccraig

Hey all, I'm curious to know if there's a tkFileDialog that allows a person to browse for a folder, and in the pop-up "Browse for Folder" window, also have the option to "Make a new folder". I need to have this functionality, but when I use askdirectory() there is only …

Member Avatar for leegeorg07
0
1K
Member Avatar for besktrap

hey everyone. i am writing a program in python w/ Tkinter and ran into a problem with padding. So, i have a Label object named DataPool_Text. when I run it (side=TOP), it goes to the top middle of the screen. I know how to use padx, but what would I …

Member Avatar for woooee
0
71
Member Avatar for juzzy

im thinking about how i could manipulate gui windows, so that if I were to have, say two separate programs running in two separate windows and i were to drag one the other would follow. does anyone know how i would begin to go about doing this? I'm actually using …

Member Avatar for Stefano Mtangoo
0
139
Member Avatar for harrykokil

hi guys i have a small problem. the cars in my program collide against each other. it works when i don't have any class car. but now there's some confusion with the speed of the car. ive worked for hours on this but no solution found. i hope u guys …

Member Avatar for Stefano Mtangoo
0
97
Member Avatar for mrpoate

Hi, I'm currently working on a project in Python 2.6.1 using the Tkinter interface, and being new to both Python and Tkinter I've quickly found a problem that keen internet trawling hasn't seemed to help. I'm sure its not a particularly difficult problem or anything, but instead of spending probably …

Member Avatar for mrpoate
0
135
Member Avatar for EAnder

I know the codes not the best well written but the only problem I'm having(besides the interpreting of the macro commands, the one here is just a base for me to work on) is how the UpdateLabels.start() method returns: [code]Traceback (most recent call last): File "C:\Users\Erik\Desktop\Stuff from last Night\MouseMacro.py", line …

Member Avatar for Ene Uran
0
118
Member Avatar for revenge2

hello again, Ive got the basics under my belt and ready to start making things happen:D. I want to experiment with different things so could you show me to some good tutorials on some of the following things. 1. sending and receive messages through the internet-what library/Mod should i use? …

Member Avatar for Ene Uran
0
106

The End.