Changeset 134
- Timestamp:
- 04/06/04 19:33:01 (4 years ago)
- Files:
-
- 05/devel/gifs/black.gif (modified) (previous)
- 05/devel/gifs/white.gif (modified) (previous)
- 05/devel/v.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
05/devel/v.py
r130 r134 2851 2851 (self.next10Button, 'ffwd'), (self.prev10Button, 'fbwd'), 2852 2852 (self.startButton, 'start'), (self.endButton, 'end'), 2853 (self.passButton, 'pass'), (self.gameinfoButton, 'info'), 2854 (self.datawindowButton, 'data')]: 2853 (self.passButton, 'pass'), (self.gameinfoButton, 'info') ]: 2855 2854 try: 2856 2855 im = PhotoImage(file=os.path.join(self.basepath, 'gifs', filename + '.gif')) 2857 button.config(image=im )2856 button.config(image=im, width=22, height=22) 2858 2857 self.tkImages.append(im) 2859 except TclError:2858 except: 2860 2859 pass 2861 2860 … … 2874 2873 self.board.currentColor = 'black' 2875 2874 2875 if sys.platform[:3] == 'win': 2876 buttonsize = 20 2877 else: 2878 buttonsize = 24 2879 2876 2880 try: 2877 2881 self.bwI = PhotoImage(file=os.path.join(self.basepath, 'gifs/bw.gif')) … … 2880 2884 self.wI = PhotoImage(file=os.path.join(self.basepath, 'gifs/w.gif')) 2881 2885 2882 2883 self.BWbutton = Radiobutton(navFrame, image=self.bwI, indicatoron = 0, 2886 self.BWbutton = Radiobutton(navFrame, image=self.bwI, indicatoron = 0, width=buttonsize, height=buttonsize, 2884 2887 variable = self.modeVar, value='blackwhite', command=self.modeChange) 2885 self.WBbutton = Radiobutton(navFrame, image=self.wbI, indicatoron = 0, 2888 self.WBbutton = Radiobutton(navFrame, image=self.wbI, indicatoron = 0, width=buttonsize, height=buttonsize, 2886 2889 variable = self.modeVar, value='whiteblack', command=self.modeChange) 2887 self.Bbutton = Radiobutton(navFrame, image=self.bI, indicatoron = 0, 2890 self.Bbutton = Radiobutton(navFrame, image=self.bI, indicatoron = 0, width=buttonsize, height=buttonsize, 2888 2891 variable = self.modeVar, value='black', command=self.modeChange) 2889 self.Wbutton = Radiobutton(navFrame, image=self.wI, indicatoron = 0, 2892 self.Wbutton = Radiobutton(navFrame, image=self.wI, indicatoron = 0, width=buttonsize, height=buttonsize, 2890 2893 variable = self.modeVar, value='white', command=self.modeChange) 2894 2895 im = PhotoImage(file=os.path.join(self.basepath, 'gifs', 'data.gif')) 2896 self.datawindowButton.config(image=im, width=buttonsize, height=buttonsize) 2897 self.tkImages.append(im) 2891 2898 2892 except TclError:2899 except: 2893 2900 self.BWbutton = Radiobutton(navFrame, text='BW', indicatoron = 0, 2894 2901 variable = self.modeVar, value='blackwhite', command=self.modeChange)
