[Glade-users] simulator_callbacks file



In callbacks1.py:

def callback_1(*args):
  pass

def callback_2(*args):
  pass

def callback_3(*args):
  pass

In callbacks2.py:

def callback_4(*args):
  pass

def callback_5(*args):
  pass

def callback_6(*args):
  pass

Then in your program:

from callbacks1 import *
from callbacks2 import *

callback_1()
callback_6()

-----Mensaje original-----
De: Peyman <paskari007 at yahoo.ca>
Para: glade-users <glade-users at lists.ximian.com>
Asunto: [Glade-users] simulator_callbacks file
Fecha: Wed, 4 Mar 2009 00:49:27 +0000

Hi

I've developed my glade project, and my python files are rather  
numerous. Where glade comes in is that it creates two files for me

A simulator.py file launches the GUI

A simulator_callbacks.py file has all of the callbacks of the widgets

The problem is that the simulator_callbacks.py file is HUGE. I would  
like to split it up but I don't know how. Any help would be appreciated.

Cheers


Peyman Askari
_______________________________________________
Glade-users maillist  -  Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]