comparison bin/curvecalc @ 725:e8f9f4815ab4

attempt at subtermview autoscroll but it doesn't work Ignore-this: 4cb643412a6478a73526608a851ef9f4
author Drew Perttula <drewp@bigasterisk.com>
date Thu, 14 Jun 2012 06:23:31 +0000
parents d8202a0a7fd5
children d1bff8a3b069
comparison
equal deleted inserted replaced
724:27fdbe9a8118 725:e8f9f4815ab4
64 mainwin.parse_geometry("715x930+1080+26") 64 mainwin.parse_geometry("715x930+1080+26")
65 65
66 # this is the only one i found that would set the size right, 66 # this is the only one i found that would set the size right,
67 # but it's a minimum size, which i don't really want 67 # but it's a minimum size, which i don't really want
68 mainwin.set_size_request(1000, 1000) 68 mainwin.set_size_request(1000, 1000)
69 69
70 wtree.get_object("subterms").connect("add", self.onSubtermChildAdded)
70 self.add_subterms_for_song(song, curveset, subterms) 71 self.add_subterms_for_song(song, curveset, subterms)
71 self.refreshCurveView() 72 self.refreshCurveView()
72 73
73 self.makeStatusLines(wtree.get_object("status")) 74 self.makeStatusLines(wtree.get_object("status"))
74 75
104 105
105 def refreshTheme(self): 106 def refreshTheme(self):
106 gtk.rc_reparse_all() 107 gtk.rc_reparse_all()
107 reactor.callLater(1, self.refreshTheme) 108 reactor.callLater(1, self.refreshTheme)
108 109
110 def onSubtermChildAdded(self, subtermsTable, *args):
111 # this would probably work, but isn't getting called
112 v = subtermsTable.get_parent().props.vadjustment
113 v.props.value = v.props.upper
114
109 def onQuit(self, *args): 115 def onQuit(self, *args):
110 reactor.crash() 116 reactor.crash()
111 # there's a hang after this, maybe in sem_wait in two 117 # there's a hang after this, maybe in sem_wait in two
112 # threads. I don't know whose they are. 118 # threads. I don't know whose they are.
113 os.kill(os.getpid(), signal.SIGKILL) 119 os.kill(os.getpid(), signal.SIGKILL)