I'm trying to use cx_Freeze and everything everything seems like it should work fine, however I'm getting an import error for import tkinter [CODE]Traceback #... from tkinter import __fix #... import_tkinter ImportError: DLL load failed: The specified module could not be found.[/CODE] This only happens when I take the the contents "all of it" out of the C:/Python32/Scripts/distany directory, inside there it works fine. any insight? EDIT: it appears this issue is resolved, however is there a way to make the program easier to access for the user when I make a zip of it and its dependencies, since there …

Member Avatar
Member Avatar
+0 forum 2

Does anybody know how to clear all widgets; labels, buttons, etc. from a tkinter frame so that new ones may be put in their place? I've tried self.destroy() but that makes the frame unreachable, and self.grid_forget() followed by, "and without" self.grid() neither of these work, at least not as expected. any suggestions?

Member Avatar
Member Avatar
+0 forum 3

As most of us know in tkinter in order to properly display an image it must be assigned to a variable, however what if you don't know that amount of images that are going to be necessary? i.e. A friend list, how would one display the friends pictures?

Member Avatar
Member Avatar
+0 forum 4

I'm trying to utilize partial in order to bind an image to it's associated name in a list "you'll see what I mean" but I'm getting a TypeError thrown on it, this is my first time trying to work with partials so I'm just not quite sure what's going on: [CODE] self.lab5.bind('<Button-1>',partial(self.search,val=mem[2])) '''/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/''' def search(self,val): pop_up(val) [/CODE] Traceback:[CODE]Exception in Tkinter callback Traceback (most recent call last): File "C:\Python32\lib\tkinter\__init__.py", line 1399, in __call__ return self.func(*args) TypeError: search() got multiple values for keyword argument 'val'[/CODE] any insight would be greatly appreciated!

Member Avatar
Member Avatar
+0 forum 4

Just fooling around I came across an issue updating a digital-clock like label. This: [CODE]self.now=time.strftime('%a. %b %d %Y %H:%M:%S',time.localtime()) self.clock=ttk.Label(self,text=self.now) self.clock.pack() while True: self.now=time.strftime('%a. %b %d %Y %H:%M:%S',time.localtime()) self.clock['text']=self.now[/CODE] simply freezes the program, I've managed to get it to update on certain events like the user hitting a button but I'd like it to continuously update. Any ideas? [B]EDIT:[/B] I got this to work using configure, but why does that work and not this? [B]Double EDIT:[/B]After some thinking I decided it was because the program was stuck in an infinite while loop, however this simply revisits the method.

Member Avatar
Member Avatar
+0 forum 2

Does anybody know a good working Python 3.x wrapper for OAUTH2? I'm having issues with the backwards incompatability with simplegeo-python-oauth2.:'(

Member Avatar
Member Avatar
+0 forum 1

Early this morning, and I haven't a clue how this slipped by me, I learned about the Android SDK and Python for Android, I did a little research, it's very intriguing. Has anybody worked with this at all? Do most built in libraries and modules work for it? How do GUI's work with it "I don't suppose tkinter is somehow working on there..." I apologize for my barage but I feel...giddy about the idea of this :)

Member Avatar
Member Avatar
+0 forum 3

I'm having an issue getting python 3.2 to recognize files in ubuntu, it's the first time I've tried to code while running it. A specific example of the issue is when setting an .ico to be a bitmap logo for a Frame in tkinter it's claiming that there it's not defined...[CODE]Traceback (most recent call last): File "/home/joshua/Python/Python-3.2.2/gpytact17.py", line 1617, in <module> [B] start.iconbitmap('pycontlog.ico')[/B] File "/usr/lib/python3.1/tkinter/__init__.py", line 1514, in wm_iconbitmap return self.tk.call('wm', 'iconbitmap', self._w, bitmap) _tkinter.TclError: bitmap "pycontlog.ico" not defined[/CODE] it's very odd to me, it doesn't actually seem like the error is just a matter of an issue finding the …

Member Avatar
Member Avatar
+0 forum 5

Hello mates,     I was wondering if in that vast amount of knowledge floating around here if any of you knew how I could save an image using Python 3.x. I know that PIL is a great, and easy option for Python 2, but I assume there must be some way to do this with 3. Ideas?

Member Avatar
Member Avatar
+0 forum 7

I'm trying to figure out how to allow users to upload images, I'm starting easy with something I know tkinter can handle with no coercion, gif files. I've figures a bit out, but I'm having issues getting the image to actually SHOW. [CODE]from tkinter import * from tkinter.filedialog import askopenfilename root=Tk() def get_image(): file_name=askopenfilename(filetypes=[('GIF FILES', '*.gif')]) print(file_name) the=PhotoImage(file=file_name) show(the) def show(imaj): Show=Toplevel() Show.grid() the_image=Button(Show,image=imaj) the_image.grid() root.upbutn=Button(root,text='upload an image',command=get_image) root.upbutn.grid() root.grid() root.mainloop()[/CODE]

Member Avatar
Member Avatar
+0 forum 3

How would I access the string that is in the [1] position of a tuple at a given index of a listbox. What I'm trying to do is something like this:[CODE] a=Lb1.curselection()[1] a=int(a) print(Lb1[a])[/CODE] Lb1 is obviously the listbox. This particular attempt claims 1 is out of range "although I know it has a string in that position". With [0] in the position when it gets to Lb1[a] it claims, can't convert type int to str implicitly, however I wouldn't want to do that, because, futilely, I'm trying to index it.

Member Avatar
Member Avatar
+0 forum 6

I'm having an issue displaying images in tkinter, I've tried the methods suggested by effbot and a couple other sources to no avail. Here are a couple ways I've tried so far:[CODE] gmail=PhotoImage('gmail.gif') self.glab=Label(self,image='gmail.gif') self.glab.image=gmail self.glab.grid(row=3,column=4) gmail=PhotoImage('gmail.gif') self.glab=Label(self,image=gmail) self.glab.image=gmail self.glab.grid(row=3,column=4) self.glabim=PhotoImage('gmail.gif') self.glab=Label(self,image=self.glabim) self.glab.grid(row=3,column=4) gmail=PhotoImage('gmail.gif') self.lab=Label(self,image=gmail) self.lab.image=gmail self.lab.pack() [/CODE]the last one actually froze the program completely, it wouldn't run. I'm sure the images are in the correct directory.

Member Avatar
Member Avatar
+0 forum 4

I hate to complain, but I'm not terribly impressed at the documentation for utilizing binding, it covers quite a bit but not common stuff, or maybe I'm just missing it. I was wondering how I could make the <RETURN> key equivalent to a <BUTTON1> click when a button is highlighted (from being tabbed over to, such as in the case of a search button. Also how would I make this work for multiple buttons, or even if the user hit <RETURN> in the Entry field? Ideas? I'm sure this one is way easier than it seems.

Member Avatar
Member Avatar
+0 forum 4

I was just wondering if anybody has any ideas on how I could allow a users input to be disguised on the screen when they're entering their passwords (such as the case about everywhere on the internet) i.e. gmail's black dots in place of the actual text of a password. I forget who's signature it is, but may the Google be with you is an extremely well put statement.

Member Avatar
Member Avatar
+0 forum 1

I'm trying to figure out how to deal with multiple matches in my address book, say the user has two people by the name of Bob; one is Bob Lastname and the other is Bob Namelast, how would you approach dealing with telling them to specify, and then allowing them to do so and get a result. Also, what if a user just has two contacts named Bob with no last name, what would you do then? I've got a temporary system in place that checks the within a given len of the input against a given len of the …

Member Avatar
Member Avatar
+0 forum 9

The End.