Syntax change to make the code more "pythonyst"

This commit is contained in:
Sergio Costas 2016-02-05 22:18:19 +01:00
parent d977cfb2ef
commit 7a7d60ce92
21 changed files with 138 additions and 137 deletions

View file

@ -38,7 +38,7 @@ class opensave_window:
builder.add_from_file(os.path.join(self.config.glade,"wopen_project.ui"))
builder.connect_signals(self)
w_window = builder.get_object("data_project")
if current_file != None:
if current_file is not None:
w_window.set_filename(current_file)
file_filter_projects=Gtk.FileFilter()
@ -59,4 +59,4 @@ class opensave_window:
if (retval == 1):
return self.final_filename
else:
return None
return None