1,133 Topics

Member Avatar for
Member Avatar for katak_guy

How do i access the '\n' (newline) character in text widget? because I've a problem doing my project. I would like to ignore the character but ......... if (A2int[plain[i]]=='\n') do the trick. Any ideas? [B]KeyError: '\n'[/B]

Member Avatar for katharnakh
0
230
Member Avatar for jrcagle

Hi all, This is the beginning of a hopefully useful project: to create a Canvas widget for wxPython that will mimic or improve on the Tkinter Canvas widget. Those of you who have coded with both will probably know what I'm talking about. With Tkinter, you can plop items like …

Member Avatar for BJSH
1
547
Member Avatar for mjsinpl

Hey guys. I have to create an alarm clock in python. i really really need some help in creating this thing.. seeing that i have absolutely no clue what i am doing. I have found some basic code that supposedly makes a clock which updates but the bleeeding thing just …

Member Avatar for Ene Uran
0
684
Member Avatar for nish88

hi everyone....... i am writing a program where i have 2 ovals and i want my first oval to appear then after 2 seconds the second one...but am failing in doing this. can anyone help me to do this please. thank you in advance here is my code [ICODE] from …

Member Avatar for nish88
0
173
Member Avatar for nish88

[B] Have someone ever implement game of life without using cell??? just using a plain interface like tkinter and rectangle. [/B]

Member Avatar for jrcagle
0
40
Member Avatar for G-Do

Hi all, I added a new script to the code snippets page. This time, it's a logic puzzle called "Petals Around the Rose." The goal is for you to infer what algorithm is being used to "score" rolls of five colored dice without peeking at the code. The snippet is …

Member Avatar for jrcagle
0
198
Member Avatar for nish88

hi..... i want to make a simulation where it start with 1 dot and its continues to propagate like the figure below. [B] . inital dot ... ...... ........ [/B] can anyone please tel me how to do it or give me the pieces of codes needed to do this …

Member Avatar for BearofNH
0
109
Member Avatar for +--RagS--+

Hello, I'm using a askdialog box from tkinter with a form. My problem is when I use "print" or "return" to get the selected directory it prints it to the terminal (if open) and I would like it to print to an Entry textbox. For example: [code=Python] from Tkinter import …

Member Avatar for +--RagS--+
0
108
Member Avatar for Haze

im trying to use the .get() method to get all the text from a tkinter text widget. the code im using is [ICODE]text = root.textwidget.get(1,end)[/ICODE] i get the error "name error: global name 'end' is not defined" is there a word specficly for the end of the text or am …

Member Avatar for ZZucker
0
185
Member Avatar for preeeya

Hi, Im a novice in Python, using Tkinter for the GUI developement. I am trying to figure out how to create my frame such that you cannot exit using the title little 'x' in the corner. In fact I dont want it at all! I did try overriding it by …

Member Avatar for Duoas
0
117
Member Avatar for nish88

hi ..... i'm designing a simulator and initially i have to click on the Tkinter interface to place a small oval(dot).That is the initial point where i want the simulation to start. can anyone please help me or if possible give me the piece of codes here is my code.... …

Member Avatar for G-Do
0
237
Member Avatar for Valmian

Hello, I have just started playing around a bit with Python/Tkinter. What I'd like to happen is to draw a circle and then have the circle change its coordinate. The way I was thinking is to have some integer i to be defined 0 and then be updated every frame …

Member Avatar for Valmian
0
7K
Member Avatar for Racoon200

Hi. I would like to know how to get the position of the cursor (blinking line in any text control) to insert there a string. I would also like to know how to get the value of a text widget and store it in a variable.

Member Avatar for Racoon200
0
6K
Member Avatar for a1eio

Hello, I was wondering whether it was possible to embed something made with pygame, like some sort of animated display or bouncing ball whatever, into a Tkinter made window, with tkinter buttons/frames etc... Anybody heard of this or know of if it can be done? Thanks a1eio

Member Avatar for a1eio
0
808
Member Avatar for nightwalker

Hello everybody, my name is Ludvig, I am a swedish student who educates myself to become an engineer. For my programming course I have made a minesweepergame, but to get the highest grade availible, I have to make it in graphics. I have succeded in doing a version without the …

Member Avatar for vegaseat
0
110
Member Avatar for Tetch

With my program, I have been trying to simulate the game of Roulette (at a casino) with a GUI, but I have a problem that I can't seem to figure out. For some reason, any kind of accumulator for "current funds" I place in the program doesn't seem to work …

Member Avatar for Tetch
0
2K
Member Avatar for Tamose

I'm trying to make the canvas (or window) created from the turtle module, but the code listed in the docs at python.org doesn't work. I've done some research online, and I keep coming across 'Tkinter', which is only confusing me further. I'm trying to make a soduko game, but first …

Member Avatar for bumsfeld
0
909
Member Avatar for oscquin

I have to do this project, The concept is quite simple (I think) but I have no Idea of how to accomplish it in python. What I have to do is make a date converter for Haab - Tzolkin Maya Calendar. It has to read Haab Date and return Tzolkin …

0
53
Member Avatar for nish88

hi...i'm tryiing to make the picture gold.gif transparent so that i can make some animation on it.cn you please help me to make the picture transparent.thanks in advance import Tkinter from Tkconstants import * import tkMessageBox def window(tk): global photo #### SIC! frame=Tkinter.Frame(tk) frame.pack() canvas=Tkinter.Canvas(frame,bg ='white', width=500,height=500) canvas.pack() photo=Tkinter.PhotoImage(file="gold.gif") canvas.create_image(200, …

Member Avatar for woooee
0
305
Member Avatar for bsdixon21222

Hello All, I havn't been programming with python too long, but decided the best way to learn it would be to dive right in. Right now I have been taking snippets here and there along with modifying some code in between to create some programs. The one I am currently …

0
65
Member Avatar for Haze

when i change the state of a entry widget to disabled it greys out automaticly and this doesn't happen with text widgets. I was wondering if there is a specific value i can change for text widgets to make it work the same way as a entry widget. this is …

Member Avatar for jrcagle
0
85
Member Avatar for RaDeuX

So I've been trying to make a VERY simple calculator program, but I tried so many things, and all of my methods failed. I've been at this for weeks, and I'm pretty frustrated up to this point. Nothing calls back on the entry box correctly, and although at certain points …

Member Avatar for vegaseat
0
434
Member Avatar for Haze

Ok so I'm trying to use menu bars to grey out different widgets in my gui il show you all the lines that i think are important and the error messages for each command i have tried. [CODE]root = Tk() input_text = Text(root, height = 10, width = 25).grid(row = …

Member Avatar for jrcagle
0
2K
Member Avatar for fredzik

G'day, Thanks Mr. Vegaseat, Jeff, Ene, Mawe for all of your great help so far...I'm slowly (very slowly!) getting used to Tkinter. But I'm again puzzled by how Tkinter does things. Some examples of code at the beginning say "from Tkinter import *" and some say "import Tkinter as tk" …

Member Avatar for fredzik
0
305
Member Avatar for erlkz

i'am newbie on using Tkinter, and i need help for my application i make application small calculator, but i can't make it just like standard calculator on MS Windows please Help me i wan't my application calculator like this :

Member Avatar for vegaseat
0
93
Member Avatar for 65dos

Hello I have a several problems with using tkinter, if anybody can help, it would be great :D I'm using a .grid method on my widgets. When I put sth (e.g.Label) in for example row=5, and want to put something different (label with other text)in row=5 it overlap one another …

Member Avatar for vegaseat
0
131
Member Avatar for aot

Does anyone out there happen to know much about Pydev? It's my preferred IDE (it's the only free IDE that received good reviews when I looked it up), but I'm getting frustrated trying to download some new modules and use them in it. I downloaded and installed the module tkSnack, …

Member Avatar for arsham
0
83
Member Avatar for fredzik

Hi, The last time I posted I think I asked too many questions and the main reason that I posted got lost somewhere amongst other side issues. The main reason I posted last time is the following: # The following code is not a game, it is configured just to …

Member Avatar for fredzik
0
126
Member Avatar for Lapinbriac

My problem may be very simple. I want to use a Tkinter window to show informations to the user, so that he could enter his answers to the Python Shell. The problem is that when the Tkinter Window appears, the Python Shell will no longer receive any command before I …

Member Avatar for aot
0
189
Member Avatar for Lapinbriac

Hello, I would like to save the drawings I have made on a Canvas with the Tkinter Module. Is it possible to make a .jpg or .gif or .bmp from a Tkinter window ? Thank you!

Member Avatar for vegaseat
0
164
Member Avatar for fredzik

G'day, Back again, this time with three problems. The code below contains a white entry box that I'm trying to get rid of. The main reason I'm trying to get rid of it is that the game I'm working on has a scrollable GUI, and with 50 or so frames …

Member Avatar for fredzik
0
2K
Member Avatar for dwrick

I am new to python and Tkinter. I was trying to build an addressbook for my class. I have the Tkinter GUI looking good - nothing fancy. Now I can't get my python part working. I want to keep the GUI in its own class and file. My two files …

Member Avatar for vegaseat
0
1K
Member Avatar for fredzik

Hi, I'm puzzled by how one positions in Tkinter. Take a look at the following code: [code=Python]print "...................................Hello, world!"[/code] This works fine in the Main Idle but when it comes to Tkinter I'm confused:confused: . The game I'm working on has about 30 "clues" dotted all about the screen. About …

Member Avatar for fredzik
0
140
Member Avatar for fredzik

G'day, I've worked on your code Vegaseat and have come up with the following rough sketch of how my game will look in the end: [code=Python]# using geometry manager Tkinter.Place for layouts # tested with Python24 vegaseat 28apr2007 import Tkinter as tk import random as rn #help('Tkinter.Place') root = tk.Tk() …

Member Avatar for fredzik
0
122
Member Avatar for fredzik

Hello every1, I've been googling about but can't seem to find a solution to the following problem: [code=Python] print "Hello world"[/code] How does one colourize the "Hello world" in the results. It can be any colour as long as it's not the standard blue. Also I need to know what …

Member Avatar for fredzik
0
143
Member Avatar for fredzik

G'day, First of all a very big thank you to both Jeff and Vegaseat for their great help...but sadly :icon_sad: it's not what I needed. Being a novice at Tkinter I did not realize what Tkinter was and was not capable of and I therefore blame myself :icon_redface: for any …

Member Avatar for fredzik
0
888
Member Avatar for jrcagle

I wanted to do an image viewer for a photo catalog project. Here is the code: [php] import Image, ImageTk from Tkinter import * filename = "C:/Pictures/2006/2006.07.04/E clarus 1 crop.jpg" class MyFrame(Frame): def __init__(self, master): Frame.__init__(self, master) im = Image.open(filename) # <--- chokes! im.resize(250,150) self.image = Label(self, image=ImageTk.PhotoImage(im)) self.image.grid() self.grid() …

Member Avatar for aot
0
6K
Member Avatar for aot

So, it would be nice to be able to insert scrollbars into my program (with Tkinter). Right now I'm using labels to display all my long blocks of text, and people flip through pages to get throught it all. I thought I'd try to add a scrollbar, but it doesn't …

Member Avatar for Lardmeister
0
109
Member Avatar for Prahaai

Hello. I am not new to Python in general, but i'm new to Tkinter. So, can anyone suggest me HOW can i make an interface like mIRC, with two text-boxes: - the lower text box will be one line and will be used to get the text commands. - the …

Member Avatar for leeqiang
0
88
Member Avatar for alba07

I wrote a program in java that takes a message entered in the shell and flashes the message, then click the quit button to quit. Now I am supposed to rewrite it in python. So far in TKinter I only have the actual quit button (gui). I have no idea …

Member Avatar for alba07
0
244
Member Avatar for alba07

Can someone help me rewrite this java program in python. This program takes a message from the shell and flashes the message one word at a time. Now I am supposed to rewrite it in python (tkinter), I have the gui done and my quit button works, but I cannot …

Member Avatar for stymiee
0
96
Member Avatar for fonzali

hi , below is my program which is supposed to accept 3 different numbers , add them up and print the result but what it does is that it takes the first number and mutiplies that by 3 , where have I gone wrong ? [code=python] from Tkinter import * …

Member Avatar for fonzali
0
869
Member Avatar for aot

Does anyone know if there's a way to make a larger entry box in Tkinter? I'm looking to allow users to enter comments at the end of my program, so there should be plenty of space.

Member Avatar for aot
0
88
Member Avatar for Gigs_

I want to make find in my text editor like in mozilla firefox on the bottom of my gui this is only for learning. [code=PYTHON] class MyClass(Frame): def onFind(self, target=None): if target == None: target = tkSimpleDialog.askstring('Find!', 'Search for string!') if target: where = self.text.search(target, INSERT, END) if where: pastit …

0
59
Member Avatar for Gigs_

I want to make undo/redo functions for my text editor and my paint editor writen in tkinter. which will be the easiest or the better way to do that? thanks

0
73
Member Avatar for Gigs_

hi all i cant figure out how to put popup window to show in the middle of my text editor? It is writen with Toplevel in tkinter. thx

Member Avatar for bumsfeld
0
78
Member Avatar for fredzik

G'day, I've been working with Pyhton for about six months and have been wanting to put a program into a seperate Tkinter GUI but have had no luck. I need to have a Tk GUI that has vertical scrolling exactly like the normal IDE except that positioned in the upper …

Member Avatar for fredzik
0
217
Member Avatar for sneekula

The last time I posted a question here, I got a rather nasty response, so please just constructive stuff! I want to make a scrollable entrybox for Tkinter GUI, the scrollbar shows up and works, but text does not move. Am I missing something? [code=python] import Tkinter as tk root …

Member Avatar for sneekula
0
758
Member Avatar for Blujacker

Is possible to do this: [code] from Tkinter import* scy=Scrollbar() scy.pack(side=RIGHT,fill=Y) scx=Scrollbar(orient=HORIZONTAL) scx.pack(side=BOTTOM,fill=X) canvas=Canvas(xscrollcommand=scx.set,yscrollcommand=scy.set) canvas.pack(fill=BOTH,side=LEFT,expand=1) scx["command"]=canvas.xview scy["command"]=canvas.yview canvas["scrollregion"]=(-1000,-1000,1000,1000) mainloop() [/code] in wxPython?? Thanks for all post, i am new in wx:lol:

Member Avatar for Blujacker
0
1K
Member Avatar for Blujacker

Hi! I am doing alredy 3 months on big program. The program solve equation. There is still a lot of things i have to repair, but it works fine;)For example, it can solve this:(5/x)/(4/x)+5*(5x+6)=|x+5|+x. The solution is: -1.14130434783 But i have different problem. Maybe you know program like this: [IMG]http://images.5star-network.com/screenshots/large/r/a/rapid-pi.gif[/IMG] …

Member Avatar for Blujacker
0
93

The End.