MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / UpdateWindowSize

Method UpdateWindowSize

graphs/gui/frame.py:111–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

109 super().openOne(parent, *args, **kwargs)
110
111 def UpdateWindowSize(self):
112 curW, curH = self.GetSize()
113 bestW, bestH = self.GetBestSize()
114 newW = max(curW, bestW)
115 newH = max(curH, bestH)
116 if newW > curW or newH > curH:
117 newSize = wx.Size(round(newW), round(newH))
118 self.SetSize(newSize)
119 self.SetMinSize(newSize)
120
121 def kbEvent(self, event):
122 if event.GetKeyCode() == wx.WXK_ESCAPE and event.GetModifiers() == wx.MOD_NONE:

Callers 4

__init__Method · 0.95
updateControlsMethod · 0.80
OnYTypeUpdateMethod · 0.80
OnXTypeUpdateMethod · 0.80

Calls 2

SetSizeMethod · 0.80
GetSizeMethod · 0.45

Tested by

no test coverage detected