Re: tkinter, canvas, get color of image?

2008-04-15 Thread Bryan Oakley
[EMAIL PROTECTED] wrote: > On 13 Apr, 19:19, Bryan Oakley <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >>> mapq = PhotoImage(file = 'C:\Users\saftarn\Desktop\elmapovic.gif') >>> w.create_image(10, 10, image = mapq, anchor = NW) >>> afte

Re: tkinter, canvas, get color of image?

2008-04-13 Thread Bryan Oakley
[EMAIL PROTECTED] wrote: > mapq = PhotoImage(file = 'C:\Users\saftarn\Desktop\elmapovic.gif') > w.create_image(10, 10, image = mapq, anchor = NW) > > after doing this is there any possibility of getting the > characteristics of the GIF-picture(or bitmap if i use that)? > > it would be very helpfu

Re: Looking for a way to include Pyhtho scripting INSIDE a python program

2008-04-13 Thread Bryan Oakley
Ivan Illarionov wrote: > You don't need to envoke another interpreter. > Python can interpret arbitrary python code with exec statement. > Wrap user's string inside function definition, and exec it. > > You might want to disable words like `import`, `exec` and `eval` in > user's code because it's

Re: tkinter, annoying grid-problem

2008-04-13 Thread Bryan Oakley
[EMAIL PROTECTED] wrote: > so my little calculator works perfectly now. just having some trouble > with the layout. > this whole tkinter-thing seems to be more tricky than it should be. > how can i make the 4 column of buttons have the same distance and > size between them as the other 3 columns?

Re: tkinter, overwrite Label-text?

2008-04-11 Thread Bryan Oakley
[EMAIL PROTECTED] wrote: > ok but i have trouble using grid. if i try to use a Label witht he > text answer in the following code it doenst work very well. > Can you describe "have trouble"? What sort of trouble -- syntax errors, the text never shows up, etc? Following is my attempt to use a la