Skip to content

Instantly share code, notes, and snippets.

@batok
Created October 27, 2010 14:43
Show Gist options
  • Save batok/649151 to your computer and use it in GitHub Desktop.
Save batok/649151 to your computer and use it in GitHub Desktop.
class IniDialog(BaseDialog):
def AddControls(self):
lbox = gizmos.EditableListBox( self.pane, -1, u"Edición de INI", (100,100), (250,250))
with open("felec.ini") as f:
lineas = [ linea for linea in f.read().split("\n") if linea ]
lbox.SetStrings( lineas )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment