1,133 Topics

Member Avatar for
Member Avatar for harrykokil

hello guys im stuck for quite a while with this problem and i badly need ur help. in fact i wanna make the red rectangle slow down when it comes close to the blue one. it would be nice if they both move at the same speed. ive tried several …

Member Avatar for harrykokil
0
78
Member Avatar for mrpoate

Hi, This is my first time on daniweb, so if I've posted in the wrong section or there's already a similarly-themed thread or I've done something wrong I apologise. Anyway, I'm hoping someone can prod me in the right direction with a problem I'm having right now. I'm currently working …

Member Avatar for mrpoate
0
2K
Member Avatar for juzzy

hi I wonder if anyone can help? I am trying to write a simple server_side message reciever so i can send messages from one machine to another, I want the program wrapped in a gui and i have been doing this using tkinter. However I have a problem, I can …

0
47
Member Avatar for harrykokil

can u plz debug it for me?? thanks [icode] import Tkinter as tk import time import sys import datetime as dt from Tkinter import * root=tk.Tk() root.title("Traffic Simulation") canvas = tk.Canvas(root, width=1000, height=400, bg="#FFFFFF") canvas.pack() for x in range (1,10): print 'orange'+x canvas.update() root.mainloop() [/icode]

Member Avatar for harrykokil
0
97
Member Avatar for starzstar

Hi, I am new to Python and have a requirement to develop a simple requirement to design a login screen, and then a screen which will have two parts in it one will show local files and other files on server I am planning to use tkinter for this is …

Member Avatar for jlm699
0
115
Member Avatar for Stonehambey

Hi guys :) Did a bit of searching but couldn't find much on this, so I thought I'd ask here. I want a Tkinter Label to display a polynomial, so naturally I need to put some superscript formatting onto it. But I can't seem to work out how to. Any …

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

I am completely new user of Python and I am supposed to develop a GUI for an old Fotran program. In this I would like to use what I think is called "tabs" although I would prefer to call them "folders" to avoid mixing with the TAB character. What I …

Member Avatar for Stefano Mtangoo
0
268
Member Avatar for Luckymeera

Hello everyone, I've been learning python since the past few days. I have tried several ways but nothing seems to work!! All I want to do is, randomly generate some moving ovals after some regular or irregular interval of time. I have tried canvas.after but it didn’t worked. The ovals …

Member Avatar for Luckymeera
0
112
Member Avatar for MaracKoMarac

I have a simple Tkinter program that has a button and an entry. Now, how do I run code from the entry? For example: Entry -> print 'Hello!' Button -> Run the entry command

Member Avatar for MaracKoMarac
0
81
Member Avatar for Trenholmes

Hi Everyone, Does any one know of a way in Tkinter on Windows to imitate Tkinter.Menu behavior in that when you select an item in a widget, say a child window, that the parent window doesn't lose focus (title bar doesn't dim as it goes out of focus). For example, …

0
44
Member Avatar for harrykokil

Hi guys.. Im stuck on my project and i urgently need ur help. i want to randomly generate some moving rectangles (one after another moving in the same direction). this should occur infinitely. So far i have only managed to create one moving rectangle. i hope u guys can help …

Member Avatar for harrykokil
0
465
Member Avatar for MaracKoMarac

Hi all. I have a very simple app, but I don't know how to get position of the circles. Here's the code: [CODE] from Tkinter import * master = Tk() global w def dotToDot1(event): global w circles = 0 x = event.x y = event.y c1 = w.create_oval(x, y, x+10, …

Member Avatar for MaracKoMarac
0
121
Member Avatar for vmars

Greetings! I just downloaded Python 2.6 from Python.org . It came with IDLE Gui. Poking around the internet, I see a bunch of other pthon related names like: IDLE, wxPython, Tkinter, Widget toolkit, PyGTK, PyQT, Tk GUI . I am not really sure what all I have, and what else …

Member Avatar for Kezoor
0
317
Member Avatar for aodpreacher

I want to make a python game with just the basic python library and Tkinter.. is this possible ? and also where would i go to find the logic behind the Simon Game..the memory part so it makes the buttons click and remember each time? also this is for a …

Member Avatar for Freaky_Chris
0
100
Member Avatar for Stefano Mtangoo

As simple as question is; What GUI toolkit do you use and why? Why didn't you used the rest? Here are GUIs I know of: [LIST=1] [*]TkInter [*]PyQT [*]PyGTK [*]Wxpython [/LIST] You can Add If you have one that isn't Listed

0
74
Member Avatar for ihatehippies

I'm fairly new to making GUI's in tk so I downloaded activestates GUI builder from sourceforge. It has a very straightforward drag and drop interface and is easy to pick up. However I ran into a problem trying to edit the widgets it creates. It makes 2 files, the first …

Member Avatar for ihatehippies
0
110
Member Avatar for TheOneElectroni

Hello everybody, after diving into Tkinter for a while I'm now willing to learn PyQt. Before spending a lot of time with it I tried to process a very simple script (displaying a plain window) with Pyinstaller. This because I absolutely need to share my app with different people which …

Member Avatar for Stefano Mtangoo
0
461
Member Avatar for imabut

i'm trying to implement my own edit menu using Tkinter, my cut and copy methods,... seems to work fine but I'm having allot of trouble getting my paste method to work. will someone please help? (((its kinda ugly i know, but i'm still new to programming and i'm more focused …

Member Avatar for imabut
0
3K
Member Avatar for Astudent

So I am getting into the swing of python in my class, and am currently trying to take a program from an example, and making it much more condensed. The issue I am having, is there are many classes for a tkinter guessing game. [ICODE]def question5(): if entry5.get() in ["Samus", …

Member Avatar for tyincali
0
128
Member Avatar for harrykokil

hi guys.. im having problems with my traffic lights. i want to execute the procesing of the traffic lights infinitely (i.e red to green to red continuously). im providing my code hoping to get a positive response soon. thanks.. [code=python] import Tkinter as tk import time import sys import datetime …

Member Avatar for sneekula
0
182
Member Avatar for harrykokil

hi guys am stuck with my project.. i want to make the car stop when the lights are red and then move when its green. im providing you my code hoping you can help me.. thanks.. [code=python] import Tkinter as tk import time import sys import datetime as dt from …

Member Avatar for Luckymeera
0
68
Member Avatar for harrykokil

hi guys.. is it appropriate to use tkinter for traffic simulation where there is a lot of movement (rotation) of cars taking into consideration its speed? thanks..

Member Avatar for sneekula
0
43
Member Avatar for harrykokil

hi everyone i wanna create a class in tkinter but im finding it very difficult to begin it as im new to python. i want a class traffic light that will operate continuously (that is red to green to red.... ). thanks..

Member Avatar for harrykokil
0
114
Member Avatar for massivefermion

Hey boys I'm using python 2.5.2 when i try to import Tkinter it tells that it doesn't know it and suggests me to install the -tk pakage if your answers include installing pakages please tell how to find and install them thanks a lot Bye

Member Avatar for jlm699
0
76
Member Avatar for Clipper34

Hey guys, well how would you go about making a GUI, i've seen examples with Tkinter. But how would you place the button exactly where you want them. Also would you set an event for a button or field for example if the button is clicked it connects to a …

Member Avatar for Stefano Mtangoo
0
103
Member Avatar for Luckymeera

hi guys im stuck on my project as im new to python. im using tkinter module. i need to create some traffic lights along the stretch of road and the vehicles should me able to stop the when it is red and should go when green lights. also they should …

Member Avatar for Gribouillis
0
1K
Member Avatar for Agni

Hi, The same code as my previous post, but because of this list thing, i'm not able to run specific commands for different options. Here i have 2 options under the 'Names' Menu, 'rajat','prasun', now when the user selects either of them i should be able to know which one …

Member Avatar for Agni
0
99
Member Avatar for Agni

Hi, Below is my test code, i have a list of names in a file, i read the names and i have to insert them as menu options in the menubar. Since its a dynamic menu and people can add new menu's it has to be read from a file …

Member Avatar for Agni
0
242
Member Avatar for zachabesh

So I was messing around with Tkinter, and I was wondering, is there an easy way to wipe whatever widgets you currently have 'packed' and show a new layout? So, if my fist screen has a button, I want a whole new layout to come up when the user hits …

Member Avatar for zachabesh
0
116
Member Avatar for leegeorg07

hi again im starting to learn tkinter but i cant find any good tutorials if you know of any then can you please tell me thanks

Member Avatar for Gribouillis
0
98
Member Avatar for J3STER

Hi All, new to this, and i havnt done much python programming, i have written a program to write data to a text file. each time i use the program, it appends the data to the file and leaves two lines between the sets of data however, i want to …

Member Avatar for J3STER
0
106
Member Avatar for cmac1212

Just as the title states, im looking for some help to press and hold keys down in any focused window. I have seen similar things using tkinter, but i have only seen code to send commands to a tkinter created window. thanks

Member Avatar for cmac1212
0
80
Member Avatar for Derme

I was just wondering, in Tkinter, is there any difference in assigning an event handler to a button through class1.btn["command"]=self.update and class1.btn(command = self.update)? Because I got an attribute error saying that there wasn't a __call__ function when i used class1.btn(command = self.update), whereas when I used class1.btn["command"] I didn't …

Member Avatar for ZZucker
0
27
Member Avatar for lid

Hi everyone ! Inside my program, i have a function which delete all the values in the "Entry" widgets. This function works with a simple button "Reset". I have also 2 radiobuttons. I would like to know, please, how radiobutton.deselect() works to deselect all the radiobuttons with my buton "Reset". …

Member Avatar for lid
0
13K
Member Avatar for TheOneElectroni

Hi everyone, I'm feeling a little dizzy trying to place the root window of my Tkinter app on the screen. I followed [URL="http://www.daniweb.com/forums/thread66037.html"]mawe[/URL] advice and coded like this: [code=python] root = Tk() root.config(bg="white") w, h = root.winfo_screenwidth(), root.winfo_screenheight() root.geometry("%dx%d+0+0" % (w, h)) [/code] However the window gets placed wrongly and …

Member Avatar for TheOneElectroni
0
748
Member Avatar for bikehike90

Hello, I am creating a new applications and i need to know how to couple a root.destroy and functionx() command to one button? I've tried to put the destroy command in functhonx() but that doesn't seem to work. Any ideas? Also, I am wondering if it's possible to refresh the …

Member Avatar for Gribouillis
0
93
Member Avatar for rysin

Hi im new to this board. Im beginning a new Python prject, my last one was a html GUI which I built in Tkinter. This time im going to make a AIM bot. Any idea on where to start with a project such as this. All help is appreciated! Thanks

Member Avatar for EAnder
0
100
Member Avatar for planetPlosion

I've just taken a beginners project from Vegaseat and modified it to fit with a Tkinter tutorial. I'm just trying to get a Tk window that has a "Go!" button and by pressing it prints the sentence. I'm having lots of trouble. I've gained a lot from this though, so …

Member Avatar for planetPlosion
0
341
Member Avatar for desm

I'm trying to write a phonebook application using Tkinter. It's not very advanced, and it's mentioned in this tutorial: [url]http://openbookproject.net//py4fun/gui/tkPhone.html[/url] The full source of the tutorial's version being here: [url]http://openbookproject.net//py4fun/gui/tkPhone.py[/url] However, I'm trying to write a version myself, yet I keep getting the following error: [QUOTE] File "phonebook_test.py", line 96, …

Member Avatar for desm
0
2K
Member Avatar for TheOneElectroni

Hello everybody, I've a somewhat odd issue displaying a .png image onto a Tkinter canvas. The image is surrounded by a grey frame. Here below an excerpt of the relevant code and by the way I'm running under windows xp. The same thing happens with the menu of the gui, …

Member Avatar for TheOneElectroni
0
451
Member Avatar for Agni

This is my code for a chat client. I create a simple UI with a text box for viewing the chat and an entry widget to write messages. There's a button called 'Connect', when i click this i start a new thread which does the connection and keeps receiving messages …

0
88
Member Avatar for Billg

I need help on the use of Classes. I am trying to use the Font class in Python to create my own instance. Erro is no Font! I though Font was a standard class in Python. Any help for a newbie will be appreciated. ----------------------------------------------------- [code]from Tkinter import * class …

Member Avatar for vegaseat
0
107
Member Avatar for MikeyFTW

Can anyone help me in graphics in python GUI using Tkinter toolkit...can anyone give me a code that can implement simple images onto the canvas of a GUI program, i know i have to use bmp. or gif. images which is fine because i got that. Thanks...

Member Avatar for TheOneElectroni
0
351
Member Avatar for MikeyFTW

[B][U]Ok heres the deal they're both a mathematics program but i want to make it like this...[/U][/B] [ICODE]from Tkinter import * import tkMessageBox import random def ask(): global num1 num1 = random.randint(1, 100) global num2 num2 = random.randint(1, 100) global answer answer = num1 + num2 label1.config(text='What is ' + …

Member Avatar for MikeyFTW
0
1K
Member Avatar for MikeyFTW

OK i have this code below here...it works fine. play with it and you will learn its a simple maths game but i want to add substraction to it as well. i want it to be able to load the program up and then be able to choose from addition …

Member Avatar for jlm699
0
389
Member Avatar for swills

I started Python, imported Tkinter assigned Tk() to root, imported snack and initialized it. i then made a sound object, read a sound from the hard drive and then played it. i couldn't hear any sound though. any idea what the problem may be?

Member Avatar for vegaseat
0
75
Member Avatar for Capt.Micro

Hi all, Ive been working on this script for a while, but, when I try to send it I get an IO error because, from what I see, its not saving the "temp.jpg" file. Not so important, the save function has the same problem. All the ports are okay, And …

Member Avatar for Capt.Micro
0
253
Member Avatar for TheOneElectroni

Hi everyone, I have a problem to insert text into a text widget in Tkinter. I want to be able that each time some text is inserted (by means of an action -not directly by the user-) that text is displayed into a new line. However I can't figure out …

Member Avatar for TheOneElectroni
0
4K
Member Avatar for aot

Can python programs with GUIs (such as Tkinter) be embedded into web pages? I have looked into CGI programming before, but despite a search, I have found no books relating how to do this with python. Is it possible? Can anyone recommend a good book? If not, what would you …

Member Avatar for Jon Pierce
0
185
Member Avatar for puliamrm

Hi! I just started using Python yesterday and I have written a program that reads in a very large data file and rearranges the data so that it can be read into a different program. I am doing this for some engineering modeling simulations. I wanted to create an interface …

Member Avatar for sneekula
0
98

The End.