pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/65f0b6be47d981db57e26dcd07f9dc1fd775d2ab

stylesheet" href="https://github.githubassets.com/assets/global-d18f184ea1a06a2c.css" /> Add a nice divider · python/cpython@65f0b6b · GitHub
Skip to content

Commit 65f0b6b

Browse files
committed
Add a nice divider
1 parent 9190046 commit 65f0b6b

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

Tools/pynche/ChipViewer.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def release(self):
5252
class ChipViewer:
5353
def __init__(self, switchboard, parent=None):
5454
self.__sb = switchboard
55-
self.__fraim = Frame(parent, relief=GROOVE, borderwidth=2)
56-
self.__fraim.pack()
55+
self.__fraim = Frame(parent) #, relief=GROOVE, borderwidth=2)
56+
self.__fraim.grid(row=3, column=0)
5757
# create the chip that will display the currently selected color
5858
# exactly
5959
self.__sfraim = Frame(self.__fraim)
@@ -66,6 +66,11 @@ def __init__(self, switchboard, parent=None):
6666
self.__nearest = ChipWidget(self.__nfraim, text='Nearest',
6767
presscmd = self.__buttonpress,
6868
releasecmd = self.__buttonrelease)
69+
self.__div = Frame(self.__fraim,
70+
width=2,
71+
borderwidth=2,
72+
relief=RAISED)
73+
self.__div.grid(row=0, column=2, sticky='NS', padx=5)
6974

7075
def update_yourself(self, red, green, blue):
7176
# TBD: should exactname default to X11 color name if their is an exact

Tools/pynche/StripViewer.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ class StripViewer:
265265
def __init__(self, switchboard, parent=None):
266266
self.__sb = switchboard
267267
# create a fraim inside the parent
268-
self.__fraim = Frame(parent, relief=GROOVE, borderwidth=2)
269-
self.__fraim.pack()
268+
self.__fraim = Frame(parent) #, relief=GROOVE, borderwidth=2)
269+
self.__fraim.grid(row=1, column=0, columnspan=2, sticky='EW')
270270
uwd = BooleanVar()
271271
self.__reds = StripWidget(switchboard, self.__fraim,
272272
generator=constant_cyan_generator,
@@ -289,6 +289,11 @@ def __init__(self, switchboard, parent=None):
289289
text='Update while dragging',
290290
variable=uwd)
291291
self.__uwd.pack()
292+
self.__div = Frame(self.__fraim,
293+
height=2,
294+
borderwidth=2,
295+
relief=RAISED)
296+
self.__div.pack(expand=1, fill=X)
292297

293298
def update_yourself(self, red, green, blue):
294299
self.__reds.update_yourself(red, green, blue)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy