# Glade template

**URL:** <https://www.ruby-forum.com/t/glade-template/134159>\
**Category:** Ruby-Gnome 2\
**Created:** [April 8, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/glade-template/134159 "2008-04-08T14:12:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kereoz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/d26b3c/32.png) [@Kereoz](https://www.ruby-forum.com/u/Kereoz)\
**Post date:** [April 8, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/glade-template/134159/1 "2008-04-08T14:12:53Z")

</div>

Hello,

I use glade in a ruby-gnome project, and I get a bit lost in my code  
because I only have one big class with everything messed up inside  
(the one created by ruby-glade-create-template).  
I would like to split my code into several classes, for example a  
different class for each window, and I’m wondering what is usually the  
best way to do it.

I’m a bit confused with the use of the file generated by  
ruby-glade-create-template.  
What do you usually do with it ?  
Would you code directly in it, or would you make @glade public and  
then access gui elements through it ?

## Regards,

Kereoz
