Create and use settings module in Python
<p>I am new to Python so bear with me. I use the pyDev plugin fore eclipse. There are three files:</p>

<p><strong>tool.py:</strong></p>

<pre><code>from gui import Tool_Window
import wx
import settings

if __name__ == '__main__':

    window = wx.App()
    Tool_Window(None, settings.WindowHeader)
    window.MainLoop()
</code></pre>

<p><strong>Tool_Window.py:</strong></p>

<pre><code>from Tool import settings
import wx

class Tool_Window(wx.Frame):

def __init__(self, parent, title):

    super(Tool_Window,self).__init__(parent, title = title)

    self.SetDimensions(settings.WindowOpenX,
                       settings.WindowOpenY,
                       settings.WindowWidth,
                       settings.WindowHeight)
</code></pre>

<p><strong>settings.py:</strong></p>

<pre><code>WindowHeader = 'The SuperAwesome Tool'
WindowOpenX = 500
WindowOpenY = 100
WindowWidth = 200
WindowHeight = 400
</code></pre>

<p>The "tool.py" file is in a package called "Tool", as is the "settings.py" file, and "Tool_Window" is in the package "gui".</p>

<p>I am getting error messages from a previous file I had in the project, now renamed to the "settings.py". I have tried cleaning the project in Eclipse, but nothing happens. The error message looks like:</p>

<pre><code>Traceback (most recent call last):
  File "/home/oystein/workspaces/python/awesome.tool/src/Tool/tool.py", line 8, in &lt;module&gt;
    Tool_Window(None, settings.WindowHeader)
  File "/home/oystein/workspaces/python/awesome.tool/src/gui/__init__.py", line 12, in __init__
    # ;-)
AttributeError: class GeneralParameters has no attribute 'WindowParameters'
</code></pre>

<p>Previously I had a class named GeneralParameters with a sub-class WindowParameters, as I wanted to access static variables for settings. I relaized Python couldn't do it like that and changed it to the "settings.py" file.</p>

<p>I run the program from "tool.py"</p>

<p>Can anyone see what's wrong here?</p>
