Skip to content

Commit

Permalink
notebook review changes
Browse files Browse the repository at this point in the history
- removed shebang and encoding
- removed notebook from move_to_toplevel
  • Loading branch information
dogeek committed Dec 7, 2019
1 parent 8d4fb85 commit 561b15a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions ttkwidgets/notebook.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#! /usr/bin/python3
# -*- coding: utf-8 -*-

"""
Copyright 2018-2019 Juliette Monsel <j_4321 at protonmail dot com>
Copyright 2019 Dogeek
Expand Down Expand Up @@ -874,12 +871,9 @@ def forget(self, tab_id):

def move_to_toplevel(self, tab):
tl = tk.Toplevel(self)
nb = Notebook(tl, **self._init_kwargs)
move_widget(tab, nb)
nb.add(tab)
nb.grid()
move_widget(tab, tl)
tab.grid()
self._toplevels.append(tl)
tl.mainloop()

def select(self, tab_id=None):
"""Select tab TAB_ID. If TAB_ID is None, return currently selected tab."""
Expand Down

0 comments on commit 561b15a

Please sign in to comment.