Created
October 23, 2012 14:31
-
-
Save niktto/3939074 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Kod: | |
(...) | |
templates = local() | |
templates.loaded = {} | |
def load_builder(builder, template_path): | |
try: | |
builder.add_from_string(templates.loaded[template_path]) | |
except KeyError: | |
with open(template_path, 'r') as template: | |
templates.loaded[template_path] = template.read() | |
builder.add_from_string(templates.loaded[template_path]) | |
(...) | |
Problem: | |
Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/initscripts/Console.py", line 27, in <module> | |
exec code in m.__dict__ | |
File "task_workshop.py", line 9, in <module> | |
File "/home/mareksz/working/tasker/tasker-client/data/main.py", line 39, in __init__ | |
self.initialize_main_window() | |
File "/home/mareksz/working/tasker/tasker-client/data/main.py", line 58, in initialize_main_window | |
load_builder(self.builder, 'data/ui/main_window.ui') | |
File "/home/mareksz/working/tasker/tasker-client/data/tools/utils.py", line 143, in load_builder | |
builder.add_from_string(templates.loaded[template_path]) | |
File "/usr/lib/python2.7/dist-packages/gi/types.py", line 47, in function | |
return info.invoke(*args, **kwargs) | |
TypeError: add_from_string() takes exactly 3 arguments (2 given) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment