thanks. I got the editor to change the font just fine. i added another menu named "Fonts" and added a bunch of the fonts to it and made a few proc to comment them. in the procs i added this line:
.editor configure -font AppleGothic
that got it to change the font. thanks a lot!
I am working on a text editor. this is the source for the text editor:
after 8000 { catch {destroy .welcome} }
proc createEditor {} {
text .editor
pack .editor
}
proc createMenubar {} {
menu .menuBar -tearoff 0
.menuBar add cascade -menu .menuBar.file -label "File" -underline 0
menu...
what i really need now is a way to apply the fonts. I got it to come up with the list that is insalled on the mac here. but i need an apply.
this is what I have with the fonts so far:
proc fontBox {} {
proc DropListCreate {
basename text width height variable initial_value } {
upvar...
I am making a text editor for a programming class at school. I wish to have a font selection menu for it. The following code is what i have found that shows the list of fonts, but i want to be able to use it rather than just look at the way the fonts look.:
set typeThis "The quick brown fox...
ok i gave up on trying to make the program in interactive through the terminal, so i downloaded pythoncard. it supposedly works, but i installed it and i had all the components needed. The it showed up with idle (it wasnt there before). but idle wont load. I double click the icon and it...
ok i got it to make a window, but the window has error messages in it. this is the program so far:
>>> class MyApp(wxPython.wx.wxApp):
... def OnInit(self):
... frame = wxPython.wx.wxFrame(0, -1, "hello")
... frame.show(true)
... self.SetTopWindow(frame)...
ok i tryed that and it worked further. then i got the error NULL is undefined or something like that so i replace NULL wiht 0 and that passes, but the -l does not work, and it will not work without something being there. I am looking to fill the gap but i have no clue what to put in there.
i tryed that and it worked out just fine once i ran it in terminal using the pythonw command. But when i try to run the program...
>>> from wxPython import *
>>> class MyApp(wxApp):
... def OnInit(self):
... frame = wxFrame(NULL, -l, "hello world")
...
i am trying to make a gui for the first time in python on a mac running osx. it has python 2.3 installed and i downloaded the binary install for wxPython, the tcl/tk, and others but the modules never seem to install.
here is a program i am trying in wxPython:
from wxPython import *
class...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.