URL
https://opencores.org/ocsvn/configurator/configurator/trunk
[/] [configurator/] [trunk/] [src/] [Configurator.py] - Diff between revs 6 and 10
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 6 |
Rev 10 |
Line 57... |
Line 57... |
if re.match("\/\/=end", row):
|
if re.match("\/\/=end", row):
|
self.tabs[current_tab].append(current_select)
|
self.tabs[current_tab].append(current_select)
|
current_select = None
|
current_select = None
|
continue
|
continue
|
|
|
|
m = re.match("\/\/=comment(\s+)(.*)(\s*)", row)
|
|
|
|
if m:
|
|
self.tabs[current_tab].append(ConfigLabel(m.group(2)))
|
|
continue
|
|
|
if re.match("\s*`ifn?def.*", row):
|
if re.match("\s*`ifn?def.*", row):
|
current_ifdef += 1
|
current_ifdef += 1
|
|
|
if re.match("\s*`endif.*", row):
|
if re.match("\s*`endif.*", row):
|
current_ifdef -= 1
|
current_ifdef -= 1
|
Line 121... |
Line 127... |
|
|
self.file.close()
|
self.file.close()
|
|
|
|
|
|
|
|
class ConfigLabel(gtk.Label):
|
|
|
|
def __init__(self, text):
|
|
|
|
gtk.Label.__init__(self, "\n" + text)
|
|
|
|
|
|
def save(self, *args): pass
|
|
|
|
|
class ConfigOption(gtk.HBox):
|
class ConfigOption(gtk.HBox):
|
|
|
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
|
|
gtk.HBox.__init__(self, True)
|
gtk.HBox.__init__(self, True)
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.