mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Rename get_position -> find_initial_position
This commit is contained in:
parent
9a502cd83b
commit
20b787223b
1 changed files with 2 additions and 2 deletions
|
@ -21,14 +21,14 @@ class Window(PygletWindow):
|
|||
self.scene = scene
|
||||
self.title = str(scene)
|
||||
self.pressed_keys = set()
|
||||
self.position = self.get_position()
|
||||
self.position = self.find_initial_position()
|
||||
|
||||
mglw.activate_context(window=self)
|
||||
self.timer = Timer()
|
||||
self.config = mglw.WindowConfig(ctx=self.ctx, wnd=self, timer=self.timer)
|
||||
self.timer.start()
|
||||
|
||||
def get_position(self):
|
||||
def find_initial_position(self):
|
||||
custom_position = get_customization()["window_position"]
|
||||
monitor = get_monitors()[0]
|
||||
window_width, window_height = self.size
|
||||
|
|
Loading…
Add table
Reference in a new issue