1,133 Topics
![]() | |
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 … | |
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 … | |
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 … | |
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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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, … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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", … | |
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 … | |
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 … | |
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.. | |
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.. | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
![]() | 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 |
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 … | |
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 | |
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 … | |
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". … | |
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 … | |
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 … | |
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 … | |
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, … | |
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, … | |
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 … | |
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 … | |
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... | |
[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 ' + … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … |
The End.