def initGUI():
        if os.getenv("DISPLAY") == None:
                print "We must start X here"
                sys.exit(1)
                xorg = 0
        else:
                print "X is running, so lets continue"
                xorg = 1

        ## import GTK

        import libs
        
        libs.fullPath()
        
        from widgets import WidgetActions
        import variables
        import colours
        
        if xorg == 1:
                import pygtk
                import gtk
                import gtk.glade
                import gobject
        else:
                print "Unable to load GTK"

        ## end

        ## end of definitions
        ## checks and pre-variables

        ## end checks and pre-variables
        ## main body - this'll check if Xorg exists.

        WidgetActions.createWindow("dtinstaller")

        ## "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." -Douglas Adams

        print "Executing the GUI... Please stand by"
        from CallModules import CallEm
        gtk.main()
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#!/usr/bin/env python

import sys
import os
import time
import pygtk
import gtk
import gtk.glade
import gobject
import libs

libs.fullPath()

import variables
#import importModules
#importModules.importModules()
from CallModules import CallEm
from colours import colours

#def importObjects():
#	widgets = xml.get_widget('colorbox')

## class: we do different things with widgets.

class WidgetActions:

	"""Class for general widget/window actions.