Hi Folks,
I need to run an infinite loop on a Menu button, like this:
from Tkinter import *
def run_job():
i = 0
while 1:
i = i + 1
if i > 100:
break
...
root = Tk()
menu = Menu(root)
root.config(menu=menu)
filemenu = Menu(menu)
menu.add_cascade(labe
Hi All,
root = Tkinter.Tk()
button = Tkinter.Button(root, text="Find me")
button.pack()
I created a button, Python object. I recall I can check this object existing by
using winfo, such as winfo.exists(button). However, I forgot which super
class contains this winfo method. I printed ou
On Wednesday, June 13, 2018 at 5:23:17 PM UTC+8, huey.y...@gmail.com wrote:
> Hi All,
>
> I forgot the syntax of making a button flash, and failed to find an example
> in the web. I use Tkinter, to create a button. Then made it packed, and
> showed up. Now I am trying to make button b flashing,
Hi All,
I forgot the syntax of making a button flash, and failed to find an example in
the web. I use Tkinter, to create a button. Then made it packed, and showed up.
Now I am trying to make button b flashing, to make it get better noticed. I
checked the docs, and found a method flash() is avai
Hi All,
I am trapped by these two funny things:
class MyClass(upClass):
def start(self):
***do_menu_here
self.load_label_image() # ---> this works
self.load_canvas_image() # ---> this does not work
def load_label_image(self):
img = PhotoImage(file="xx.g
On Friday, August 12, 2016 at 9:40:15 PM UTC-4, huey.y...@gmail.com wrote:
> Hi All,
>
> Image display drives me crazy. After I get it displayed, and want to do the
> job with a class, display failed again. Please take a look at my trial code:
>
> from Tkinter import *
>
> class imageDisplay:
>
Hi All,
Image display drives me crazy. After I get it displayed, and want to do the job
with a class, display failed again. Please take a look at my trial code:
from Tkinter import *
class imageDisplay:
def __init__(self, parent=None):
canvas = Canvas(width=400, height=3
On Wednesday, July 27, 2016 at 10:00:47 PM UTC-4, Rick Johnson wrote:
> On Wednesday, July 27, 2016 at 7:15:20 PM UTC-5, MRAB wrote:
> > On 2016-07-28 00:13, huey.y.ji...@gmail.com wrote:
> > > On Wednesday, July 27, 2016 at 4:18:29 PM UTC-4, huey.y...@gmail.com
> > > wrote:
> > >> Hi Folks,
> > >
On Wednesday, July 27, 2016 at 4:18:29 PM UTC-4, huey.y...@gmail.com wrote:
> Hi Folks,
>
> It is common to put a BUTTON on a canvas by the means of coding. However, in
> my application, I need to draw a circle on canvas, and then make this circle
> to work as if it is a button. When the circle
On Wednesday, July 27, 2016 at 4:18:29 PM UTC-4, huey.y...@gmail.com wrote:
> Hi Folks,
>
> It is common to put a BUTTON on a canvas by the means of coding. However, in
> my application, I need to draw a circle on canvas, and then make this circle
> to work as if it is a button. When the circle
Hi Folks,
It is common to put a BUTTON on a canvas by the means of coding. However, in my
application, I need to draw a circle on canvas, and then make this circle to
work as if it is a button. When the circle is clicked, it triggers a new image
to be displayed. Somebody can help? Thanks!
--
h
Thanks so much! All of methods works!
--
https://mail.python.org/mailman/listinfo/python-list
12 matches
Mail list logo