Mercurial > hg > RemoteViewer
view RemoteViewer/Connection.py @ 1:fe8a1645b632
connect the ui elements directly to the Connection object
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 19 Sep 2014 04:17:06 +0200 |
parents | f889ad584f0a |
children | 71c9c315cfad |
line wrap: on
line source
class Connection(object): def __init__(self): self.geometry = None self.host = None self.title = None self.type = 'rdp' self.user = None def __str__(self): return 'connection "{}" of type {} to {} with user {} and geometry {}'.format(self.title, self.type, self.host, self.user, self.geometry) def setType(self, type): self.type = type def setHost(self, hostname): self.host = hostname def setUser(self, user): self.user= user def setGeometry(self, geometry): self.geometry = geometry def validate(self): pass