mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Title
This commit is contained in:
parent
c078b03d7f
commit
7c51a9a80b
3 changed files with 6 additions and 8 deletions
|
@ -54,7 +54,6 @@ Shift + Right == +25
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from Tkinter import *
|
from Tkinter import *
|
||||||
from pynche import __version__
|
|
||||||
|
|
||||||
STOP = 'Stop'
|
STOP = 'Stop'
|
||||||
WRAP = 'Wrap Around'
|
WRAP = 'Wrap Around'
|
||||||
|
@ -69,7 +68,7 @@ class DetailsViewer:
|
||||||
# GUI
|
# GUI
|
||||||
root = self.__root = Toplevel(parent, class_='Pynche')
|
root = self.__root = Toplevel(parent, class_='Pynche')
|
||||||
root.protocol('WM_DELETE_WINDOW', self.__withdraw)
|
root.protocol('WM_DELETE_WINDOW', self.__withdraw)
|
||||||
root.title('Pynche %s' % __version__)
|
root.title('Pynche Details Window')
|
||||||
root.iconname('Pynche Details Window')
|
root.iconname('Pynche Details Window')
|
||||||
root.bind('<Alt-q>', self.__quit)
|
root.bind('<Alt-q>', self.__quit)
|
||||||
root.bind('<Alt-Q>', self.__quit)
|
root.bind('<Alt-Q>', self.__quit)
|
||||||
|
@ -89,14 +88,14 @@ class DetailsViewer:
|
||||||
self.__l1 = Label(frame, text='Color Ties:')
|
self.__l1 = Label(frame, text='Color Ties:')
|
||||||
self.__l1.grid(row=0, column=0, columnspan=3, sticky=E)
|
self.__l1.grid(row=0, column=0, columnspan=3, sticky=E)
|
||||||
self.__rvar = IntVar()
|
self.__rvar = IntVar()
|
||||||
self.__rvar.set(1)
|
self.__rvar.set(4)
|
||||||
self.__radio1 = Checkbutton(frame, text='Red',
|
self.__radio1 = Checkbutton(frame, text='Red',
|
||||||
variable=self.__rvar,
|
variable=self.__rvar,
|
||||||
command=self.__effect,
|
command=self.__effect,
|
||||||
onvalue=4, offvalue=0)
|
onvalue=4, offvalue=0)
|
||||||
self.__radio1.grid(row=0, column=3, columnspan=3, sticky=W)
|
self.__radio1.grid(row=0, column=3, columnspan=3, sticky=W)
|
||||||
self.__gvar = IntVar()
|
self.__gvar = IntVar()
|
||||||
self.__gvar.set(1)
|
self.__gvar.set(2)
|
||||||
self.__radio2 = Checkbutton(frame, text='Green',
|
self.__radio2 = Checkbutton(frame, text='Green',
|
||||||
variable=self.__gvar,
|
variable=self.__gvar,
|
||||||
command=self.__effect,
|
command=self.__effect,
|
||||||
|
@ -111,6 +110,7 @@ class DetailsViewer:
|
||||||
self.__radio3.grid(row=2, column=3, columnspan=3, sticky=W)
|
self.__radio3.grid(row=2, column=3, columnspan=3, sticky=W)
|
||||||
self.__l2 = Label(frame)
|
self.__l2 = Label(frame)
|
||||||
self.__l2.grid(row=3, column=3, columnspan=3, sticky=W)
|
self.__l2.grid(row=3, column=3, columnspan=3, sticky=W)
|
||||||
|
self.__effect()
|
||||||
#
|
#
|
||||||
# Boundary behavior
|
# Boundary behavior
|
||||||
self.__l3 = Label(frame, text='At boundary:')
|
self.__l3 = Label(frame, text='At boundary:')
|
||||||
|
|
|
@ -17,7 +17,6 @@ given name, without selecting the color.
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from Tkinter import *
|
from Tkinter import *
|
||||||
from pynche import __version__
|
|
||||||
import ColorDB
|
import ColorDB
|
||||||
|
|
||||||
class ListViewer:
|
class ListViewer:
|
||||||
|
@ -28,7 +27,7 @@ class ListViewer:
|
||||||
# GUI
|
# GUI
|
||||||
root = self.__root = Toplevel(parent, class_='Pynche')
|
root = self.__root = Toplevel(parent, class_='Pynche')
|
||||||
root.protocol('WM_DELETE_WINDOW', self.__withdraw)
|
root.protocol('WM_DELETE_WINDOW', self.__withdraw)
|
||||||
root.title('Pynche %s' % __version__)
|
root.title('Pynche Color List')
|
||||||
root.iconname('Pynche Color List')
|
root.iconname('Pynche Color List')
|
||||||
root.bind('<Alt-q>', self.__quit)
|
root.bind('<Alt-q>', self.__quit)
|
||||||
root.bind('<Alt-Q>', self.__quit)
|
root.bind('<Alt-Q>', self.__quit)
|
||||||
|
|
|
@ -17,7 +17,6 @@ in the text window (which only has a background).
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from Tkinter import *
|
from Tkinter import *
|
||||||
from pynche import __version__
|
|
||||||
import ColorDB
|
import ColorDB
|
||||||
|
|
||||||
class TextViewer:
|
class TextViewer:
|
||||||
|
@ -25,7 +24,7 @@ class TextViewer:
|
||||||
self.__sb = switchboard
|
self.__sb = switchboard
|
||||||
root = self.__root = Toplevel(parent, class_='Pynche')
|
root = self.__root = Toplevel(parent, class_='Pynche')
|
||||||
root.protocol('WM_DELETE_WINDOW', self.__withdraw)
|
root.protocol('WM_DELETE_WINDOW', self.__withdraw)
|
||||||
root.title('Pynche %s' % __version__)
|
root.title('Pynche Text Window')
|
||||||
root.iconname('Pynche Text Window')
|
root.iconname('Pynche Text Window')
|
||||||
root.bind('<Alt-q>', self.__quit)
|
root.bind('<Alt-q>', self.__quit)
|
||||||
root.bind('<Alt-Q>', self.__quit)
|
root.bind('<Alt-Q>', self.__quit)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue