示例#1
0
 def show(self):
     # when the popup becomes visible, get the cursor
     # so we know how to replace the selection
     self.dotPosition = self.textComponent.getCaretPosition()
     self.setSize(self.getPreferredSize())
     JWindow.show(self)
示例#2
0
文件: popup.py 项目: CafeGIS/gvSIG2_0
 def show(self):
     # when the popup becomes visible, get the cursor
     # so we know how to replace the selection
     self.dotPosition = self.textComponent.getCaretPosition()
     self.setSize(self.getPreferredSize())
     JWindow.show(self)