Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
ed7d279
refactor TextFrame, extracting just the basic scrollable text widget
taleinat Jul 26, 2019
f67f6b9
use a scrollable text widget for the font config page's preview
taleinat Jul 26, 2019
0092a93
highlight page sample also a fixed-sized, scrollable text widget
taleinat Jul 26, 2019
3380193
refactor: make self.font_sample and self.highlight_sample consistent
taleinat Jul 26, 2019
b1dc2dd
rename for clarity: add_config_hook -> add_config_callback
taleinat Jul 26, 2019
48e97ce
Omit unneeded extra line number.
terryjreedy Jul 26, 2019
f78427a
Use horizontal scroller for font sample.
terryjreedy Jul 26, 2019
221e051
Condense 'font_sample_scrollable_frame' to 'font_sample__frame.
terryjreedy Jul 26, 2019
34c218a
Blurb.
terryjreedy Jul 26, 2019
b954c06
Meaningful names for callback functions.
terryjreedy Jul 27, 2019
72015a9
rename 'text' input param to 'contents' and use 'text' as local var
taleinat Jul 27, 2019
b5c467d
fix double-underscore typo
taleinat Jul 27, 2019
7100ec9
re-instate use of 'text' local variable in ScrollableTextFrame code
taleinat Jul 27, 2019
977c219
simplify ScrollableTextFrame, removing the config callback
taleinat Jul 27, 2019
3d8729d
Rename AutoHiddenScrollbar to AutoHideScrollbar
terryjreedy Jul 27, 2019
501fde2
Fix textview htest.
terryjreedy Jul 27, 2019
52cfa62
Restore coverage, reduced in prior issue, to 100%.
terryjreedy Jul 27, 2019
2cbf9e5
Double space between classes.
terryjreedy Jul 27, 2019
59eba51
Spacing
terryjreedy Jul 27, 2019
f6ac725
Combine configuration.
terryjreedy Jul 27, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Restore coverage, reduced in prior issue, to 100%.
  • Loading branch information
terryjreedy committed Jul 27, 2019
commit 52cfa6282bf53553d6a778393ed1007ed8d081eb
11 changes: 9 additions & 2 deletions Lib/idlelib/idle_test/test_textview.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
information about calls.
"""
from idlelib import textview as tv
import unittest
from test.support import requires
requires('gui')

import os
from tkinter import Tk, CHAR, NONE, WORD
import unittest
from tkinter import Tk, TclError, CHAR, NONE, WORD
from tkinter.ttk import Button
from idlelib.idle_test.mock_idle import Func
from idlelib.idle_test.mock_tk import Mbox_func
Expand Down Expand Up @@ -69,6 +69,13 @@ def test_ok(self):
view.destroy()


class AutoHideScrollbarTest(unittest.TestCase):
# Method set is tested in ScrollableTextFrameTest
def test_forbidden_geometry(self):
scroll = tv.AutoHideScrollbar(root)
self.assertRaises(TclError, scroll.pack)
self.assertRaises(TclError, scroll.place)

class ScrollableTextFrameTest(unittest.TestCase):

@classmethod
Expand Down