The config filenames should be more clear (so GUI & Sources)
This commit is contained in:
parent
c909830c46
commit
b47d7d5e63
@ -1,11 +1,12 @@
|
||||
from Tkinter import *
|
||||
import os
|
||||
|
||||
from configImporter import *
|
||||
from tkFileDialog import asksaveasfilename
|
||||
|
||||
from configImporter import *
|
||||
|
||||
|
||||
class GUI():
|
||||
def __init__(self, search, config_file='configuration.cfg', sourceloader=None, in_source=True):
|
||||
def __init__(self, search, config_file='GUI.cfg', sourceloader=None, in_source=True):
|
||||
"""Boots the window, configuration."""
|
||||
if not in_source:
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
|
@ -7,7 +7,7 @@ class TestGUI(unittest.TestCase):
|
||||
pass
|
||||
|
||||
def test_empty_attributes(self):
|
||||
self.test_gui = gui.GUI(None, '../GUI/configuration.cfg', in_source=False)
|
||||
self.test_gui = gui.GUI(None, '../GUI/GUI.cfg', in_source=False)
|
||||
self.test_gui.window.after(9, self.test_gui.prepare_search)
|
||||
self.test_gui.window.after(11, self.test_gui.window.destroy)
|
||||
self.test_gui.run()
|
||||
|
Reference in New Issue
Block a user