Re: Errors on text.get()

2014-03-26 Thread eneskristo
On Tuesday, March 25, 2014 2:15:11 PM UTC-7, enesk...@gmail.com wrote: > Exception in Tkinter callback > > Traceback (most recent call last): > > File "C:\Python33\lib\tkinter\__init__.py", line 1475, in __call__ > > return self.func(*args) > > File "C:/Users/User/PycharmProjects/Cesari

Errors on text.get()

2014-03-25 Thread eneskristo
Exception in Tkinter callback Traceback (most recent call last): File "C:\Python33\lib\tkinter\__init__.py", line 1475, in __call__ return self.func(*args) File "C:/Users/User/PycharmProjects/Cesarian Codes/project.py", line 43, in gen_random string = text.get('1.0', 'end') File "C:\

How to clear all content in a Tk()

2014-03-24 Thread eneskristo
I have this program, and since I want to change stuff dynamically, I want to fully clear the root = Tk(), without deleting it. Is there a way to do so? -- https://mail.python.org/mailman/listinfo/python-list

Re: Wait... WHAT?

2014-02-13 Thread eneskristo
Can we please revert back to the original problem? def save(): target = open ("save.swroc", 'w') target.write([counter, loop, number_of_competitors, competitors]) def load(): the_array = list(open("save.swroc", 'r')) the_array = target counter = the_a

Re: Wait... WHAT?

2014-02-12 Thread eneskristo
I am sorry then. So what's the problem, and if it is a bug, should I report it? -- https://mail.python.org/mailman/listinfo/python-list

Re: Wait... WHAT?

2014-02-12 Thread eneskristo
One to write in the file, and one to read it. -- https://mail.python.org/mailman/listinfo/python-list

Re: Wait... WHAT?

2014-02-12 Thread eneskristo
I think of it as a bit strange. Should I report it as a bug? I was trying to incorporate a save/load, and this happened. def save(): target = open ("save.swroc", 'w') target.write([counter, loop, number_of_competitors, competitors]) def load(): target = open("save.

Wait... WHAT?

2014-02-12 Thread eneskristo
http://postimg.org/image/rkm9lhj8n/ So, I was doing some cx freeze stuff. If you cant understand everything from the pic, I'll give extra info. Please help me. -- https://mail.python.org/mailman/listinfo/python-list

Re: Bind event is giving me a bug.

2014-01-15 Thread eneskristo
Thank you, I thought Enter was Enter, but I still have this problem, when I press the Button, this appears: Exception in Tkinter callback Traceback (most recent call last): File "C:\Python33\lib\tkinter\__init__.py", line 1475, in __call__ return self.func(*args) TypeError: get_text() missin

Bind event is giving me a bug.

2014-01-15 Thread eneskristo
While working with tkinter in python 3.3, I had the following problem. def get_text(event): self.number_of_competitors = entered_text.get() try: self.number_of_competitors = int(self.number_of_competitors) except: pass

On how to use cxFreeze

2014-01-14 Thread eneskristo
For the first time in my life as a novice Python developer, I need to convert a python file to a .exe (AKA freeze it). Have been having a lot of problems in finding a proper guide, and have come here to ask for your help humbly. I am willing to provide any data if needed. Thank you! -- https://

Re: gotta love radio buttons

2014-01-05 Thread eneskristo
Now it is giving me this error, after changing to helper = var[r.get()] line 27, in submit_data self.something_else[r][1] += 1 TypeError: list indices must be integers, not IntVar -- https://mail.python.org/mailman/listinfo/python-list

gotta love radio buttons

2014-01-05 Thread eneskristo
So, I'm having this radio button issue in tkinter: First I assign the IntVar: var = [] while i < self.something: var.append(IntVar()) i += 2 Later on I use them, but I get this error: for r in var: helper = var[r].get() self.something_else[helper] += 1 Then, this happens: Traceback

Struggling with an anchor in my hands

2014-01-05 Thread eneskristo
SO, I'm still trying to make that tkinter code. I've come far enough, but I now should place the elements in the window. But I'm having problems with anchor. No matter how I use it, it always goes to the SW part. I want them to go to the NW part. Any help please? I can provide any needed info.

On radio buttons in tkinter

2014-01-04 Thread eneskristo
So the issue is like this. I have to make a 2 x N grid like this: o Radio - 1 o Radio - 2 o Radio - 3 o Radio - 4 ... o Radio - N - 1 o Radio - N How to do so with a loop? -- https://mail.python.org/mailman/listinfo/python-list

Re: On a scrollbar for tkinter

2014-01-04 Thread eneskristo
On Friday, January 3, 2014 12:00:05 PM UTC+1, Vlastimil Brom wrote: > 2014/1/3 : > > > @Rick > > > I found some solutions for python 2.x, but still, as I am with the future, > > I need a futuristic solution or 2, so if anyone else could help me, I'd be > > grateful! > > > -- > > > > Hi, >

Re: Creating a list with holes

2014-01-03 Thread eneskristo
On Friday, January 3, 2014 4:19:09 PM UTC+1, larry@gmail.com wrote: > I think I know the answer is no, but is there any package that allows > > creating a list with holes in it? E.g. I'd want to do something like: > > > > x[10] = 12 > > x[20] = 30 > > > > I'm thinking of something like

Re: On a scrollbar for tkinter

2014-01-03 Thread eneskristo
@Terry Quite sorry but had to write that message in a hurry, didn't notice the name. @Rick I found some solutions for python 2.x, but still, as I am with the future, I need a futuristic solution or 2, so if anyone else could help me, I'd be grateful! -- https://mail.python.org/mailman/listinfo/

Re: On a scrollbar for tkinter

2014-01-02 Thread eneskristo
@Teddy Yes, indeed I have, but so far I have only found material for scrolling in other stuff, not the main frame. If you can give me a link... -- https://mail.python.org/mailman/listinfo/python-list

On a scrollbar for tkinter

2014-01-02 Thread eneskristo
Hello people! I'm new to tkinter, but I have to use it for a program for a competition. So, I make a RadioButton program using a while loop. So far so good, fully working. BUT it didn't show the full content, even after maximising the window. So, my question is, how do I make a scroll bar(On x a