title: Read configuration settings from XML file for Gtk3 application
body: <p>I am trying to develop a desktop application using Gtk3 and Python. It's basically a Twitter client. I had intended to store the authentication settings (access token and access token secret) in an XML file. Now I wish to read them on the launch of the application.</p>
  
  <p>The problem I have is where to place the code for reading the XML file.</p>
  
  <p>The authentication requires the following steps:</p>
  
  <pre><code>auth = tweepy.OAuthHandler(cons_key,cons_secret)
  auth.set_access_token(access_token,access_token_secret)
  api = tweepy.API(auth)
  </code></pre>
  
  <p>I can't place the read code in the constructor of the main window, as when the window opens, the methods for getting the tweets is called. I have placed my code on <a href="https://github.com/gauravsood91/PyGTweet" rel="nofollow">github</a>.</p>
  
  <p>The XML file is as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" ?&gt;
  &lt;credentials&gt;
   &lt;access_token&gt;
    76611638-TSnLa31lRXEp3qBNpxKmi2gyiW0jCLpOKeEsK5i6A
   &lt;/access_token&gt;
   &lt;access_token_secret&gt;
    wgC9xwGpCMOQQtDazOZF7wtvCA5MrtcaLT6gLv1vdE
   &lt;/access_token_secret&gt;
  &lt;/credentials&gt;
  </code></pre>