[Tutor] working with Tkinter

Maximiliano Ichazo max_ig@yahoo.com
Thu, 25 Apr 2002 07:16:09 -0700 (PDT)


I don't have the code in the computer I'm using right now but the code
is in the following style:

class prg:
  
   button1= Button(text="whatever", command= self.do_whatever)
more buttons and widgets

   def whatever(self):
      and here other dialog with its buttons calling more dialogs.

At the end, the different dialogs call MySQL to put or fetch data (BTW,
MySQL and Python is just marvellous).






--- Bryce Embry <bryce@bembry.org> wrote:
> Can you post some of the code you are working with?  It will be
> easier to 
> help if we can see what you are trying to do.
> 
> Thanks,
> Bryce
> 
> At 08:11 AM 4/25/2002, you wrote:
> >I'm working out a small program with Tkinter that has an initial
> dialog
> >with many buttons calling many dialogs with many buttons calling
> more
> >dialogs.
> >
> >My problem is about the code, it looks like spaghetti. I would like
> to
> >hear some advice re how to organize code preventing spaghetti-like
> >programming.
> >
> >Thanx,
> >
> >Max
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Yahoo! Games - play chess, backgammon, pool and more
> >http://games.yahoo.com/
> >
> >
> >_______________________________________________
> >Tutor maillist  -  Tutor@python.org
> >http://mail.python.org/mailman/listinfo/tutor
> 
>
--------------------------------------------------------------------------------------------
> "Lord, you establish peace for us.
> All that we have accomplished
> you have done for us" -- Isaiah 26:12
> 
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/