~ubuntu-branches/ubuntu/saucy/d-rats/saucy-proposed

« back to all changes in this revision

Viewing changes to d_rats/formgui.py

  • Committer: Bazaar Package Importer
  • Author(s): Steve Conklin
  • Date: 2011-07-09 20:22:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110709202216-63n8o6pilawsrxbc
Tags: 0.3.3-1
New upstream version 0.3.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1162
1162
                    call = self._config.get("user", "callsign")
1163
1163
                    f.entry.widget.set_text(call)
1164
1164
                f.entry.widget.set_property("editable", False)
 
1165
            elif f.id == "_auto_position":
 
1166
                if not f.entry.widget.get_text():
 
1167
                    import mainapp # Dirty hack
 
1168
                    pos = mainapp.get_mainapp().get_position()
 
1169
                    f.entry.widget.set_text(pos.coordinates())
1165
1170
            
1166
1171
            l = gtk.Label(f.caption)
1167
1172
            l.show()