[Tkinter-discuss] Scrollbar maybe not setting right on a text widget

2008-08-19 Thread Alexnb
The reason I say "maybe" is because I am not sure if that is what is happening. What happens is that the textbox will fill up (with info the program puts in, not the user) and the text widget will be at the top, like you will be looking at the begining of the textbox, but the scrollbar starts at

Re: [Tkinter-discuss] Problems with a scrollbar on a listbox

2008-08-18 Thread Alexnb
g = bgcol, width=width, height=height) > scrollbar.config(command=self.table.yview) > scrollbar.pack(side=RIGHT, fill=Y) > self.table.pack(side=LEFT, fill=BOTH, expand=1) > > # insert the items > for item in items: > self.table.insert(END, i

[Tkinter-discuss] Problems with a scrollbar on a listbox

2008-08-18 Thread Alexnb
So I have a listBox and a scrollbar, both in the same frame. I have them set up just as I do my text widgets, and they work just as they should. Here is how I have it: self.urlscrollbar = Scrollbar(self.insidebuffer1) self.urlscrollbar.pack(side=RIGHT, fill=Y) self.diclistBox = Listbox(s

[Tkinter-discuss] getting width of a Frame

2008-08-18 Thread Alexnb
I have two listBoxes in one Frame. I want to make them the same size. I want to make them half of the width of the Frame they are in. I just can't figure out how to get the width of a Frame, just a window. Help? -- View this message in context: http://www.nabble.com/getting-width-of-a-Frame-tp19

Re: [Tkinter-discuss] putting a series of hyperlinks in a text widget

2008-08-17 Thread Alexnb
Ya, I saw that but didn't help :( But its good, I got what I need. Fredrik Lundh wrote: > > Alexnb wrote: > >> You know, I think this is exactly what I was looking for. >> >> Thanks for your help! > > Here's the first hit for "tkinter h

Re: [Tkinter-discuss] putting a series of hyperlinks in a text widget

2008-08-16 Thread Alexnb
uot;) > txt.insert(END, "Press ") > txt.insert(END, "here ", ('link', str(0))) > txt.insert(END, "for Python. Press ") > txt.insert(END, "here ", ('link', str(1))) > txt.insert(END, "for Heaven.") > txt.tag_config(&#

[Tkinter-discuss] putting a series of hyperlinks in a text widget

2008-08-12 Thread Alexnb
I am having trouble figuring out the best way to do this and would love some help. What I need to do is to create clickable links in a text widget, but there will be at max 40. They will all be different. I am wondering what is the best way to create a clickable unique url in a text widget. I kno

[Tkinter-discuss] simple way of clearing out a text widget

2008-08-11 Thread Alexnb
I am wondering, what is the best way to clear out a text widget. If it matters, I will still want to use that text widget again. -- View this message in context: http://www.nabble.com/simple-way-of-clearing-out-a-text-widget-tp18928171p18928171.html Sent from the Python - tkinter-discuss mailin

Re: [Tkinter-discuss] creating a custom style GUI

2008-07-29 Thread Alexnb
Guilherme Polo wrote: > > On Tue, Jul 29, 2008 at 5:34 PM, Alexnb <[EMAIL PROTECTED]> wrote: >> >> This isn't really related to Tkinter, but I think some people here might >> be >> able to help me. I want to create a GUI That is kind of custom. Meaning

[Tkinter-discuss] creating a custom style GUI

2008-07-29 Thread Alexnb
This isn't really related to Tkinter, but I think some people here might be able to help me. I want to create a GUI That is kind of custom. Meaning that not just the standard stuff in Tkinter, but stuff that I create, such as custom buttons and backgrounds. I don't care if it uses tcl or not. I am

[Tkinter-discuss] tkinter print file Dialog?

2008-07-27 Thread Alexnb
So, I know there is a tk.openfiledialog() thing. But is there one for printing? like I am doubting it, but I want to prompt the user and let them be able to pick a printer. Is there one? or is there a good way to do this? -- View this message in context: http://www.nabble.com/tkinter-print-file-

Re: [Tkinter-discuss] Making an image the background of a Frame

2008-07-19 Thread Alexnb
Tim Jones-8 wrote: > > On Jul 19, 2008, at 4:20 PM, Alexnb wrote: > >> Guilherme Polo wrote: >>> >>> On Sat, Jul 19, 2008 at 7:43 PM, Alexnb <[EMAIL PROTECTED]> wrote: >>>> >>>> So, is there a way I can make the background of a f

Re: [Tkinter-discuss] Making an image the background of a Frame

2008-07-19 Thread Alexnb
Guilherme Polo wrote: > > On Sat, Jul 19, 2008 at 7:43 PM, Alexnb <[EMAIL PROTECTED]> wrote: >> >> So, is there a way I can make the background of a frame an image and >> still >> have all the widgets (buttons in this case) remain where they are and how >

[Tkinter-discuss] Making an image the background of a Frame

2008-07-19 Thread Alexnb
So, is there a way I can make the background of a frame an image and still have all the widgets (buttons in this case) remain where they are and how they work? -- View this message in context: http://www.nabble.com/Making-an-image-the-background-of-a-Frame-tp18549545p18549545.html Sent from the

Re: [Tkinter-discuss] Issue with scrolling in a Text() widget on a mac

2008-07-19 Thread Alexnb
Alexnb wrote: > > > > Kevin Walzer-5 wrote: >> >> Alexnb wrote: >>> >> >>> As far as I know I've got the latest python, I code with 2.5, but I am >>> not >>> sure about Tk(). How can I check? My mac is updated

Re: [Tkinter-discuss] Issue with scrolling in a Text() widget on a mac

2008-07-19 Thread Alexnb
Kevin Walzer-5 wrote: > > Alexnb wrote: >> > >> As far as I know I've got the latest python, I code with 2.5, but I am >> not >> sure about Tk(). How can I check? My mac is updated as well. It's a >> macbook. >> But I don't see ho

Re: [Tkinter-discuss] Issue with scrolling in a Text() widget on a mac

2008-07-19 Thread Alexnb
Kevin Walzer-5 wrote: > > Alexnb wrote: > >> >> Okay, here we go. Try this out, let me know how it works. It has the same >> issue for me. >> >> > > > Works fine for me. What does your setup look like? OS version, version > of Python and

Re: [Tkinter-discuss] Issue with scrolling in a Text() widget on a mac

2008-07-19 Thread Alexnb
Kevin Walzer-5 wrote: > > Alexnb wrote: > >> Yes sorry. I do actually have that, I just forgot to put it in because it >> was below some comments. Everything works perfect on windows, but not on >> mac, which is the weird part. I think it is just maybe an issu

Re: [Tkinter-discuss] Issue with scrolling in a Text() widget on a mac

2008-07-19 Thread Alexnb
Kevin Walzer-5 wrote: > > Alexnb wrote: >> Hello everyone! >> >> So, I have a texbox widget and I connected a scrollbar to it. On my PC >> everything works great. But on my mac, you can't scroll when you click >> the >> box and dragging the a

[Tkinter-discuss] Buttons on a mac over-riding the Frame background

2008-07-18 Thread Alexnb
Okay, so if my title didn't make that much sense, what I mean is this. Say I have a frame called "buttonsFrame" and I have two buttons in it. If the Frame's background is red, there is a little white square around the buttons. how can I get rid of that? Is there a way to change the default root

[Tkinter-discuss] Issue with scrolling in a Text() widget on a mac

2008-07-18 Thread Alexnb
Hello everyone! So, I have a texbox widget and I connected a scrollbar to it. On my PC everything works great. But on my mac, you can't scroll when you click the box and dragging the actual bar is very choppy. The only way it works like it should is the actual arrow on the end of the bar. I am wo

Re: [Tkinter-discuss] setting a windows starting screen position

2008-07-14 Thread Alexnb
Guilherme Polo wrote: > > On Mon, Jul 14, 2008 at 10:52 PM, Alexnb <[EMAIL PROTECTED]> wrote: >> >> I am wondering how to set the window's starting screen postion. I guess >> the >> default is the top left, or some coordinate in the top left. But i wa

[Tkinter-discuss] setting a windows starting screen position

2008-07-14 Thread Alexnb
I am wondering how to set the window's starting screen postion. I guess the default is the top left, or some coordinate in the top left. But i want my app to start in the center of the screen. How would I ot about doing that? -- View this message in context: http://www.nabble.com/setting-a-windo

Re: [Tkinter-discuss] Having an icon as a button, or a clickable icon

2008-07-13 Thread Alexnb
Cameron Laird-2 wrote: > > On Sun, Jul 13, 2008 at 01:26:18PM -0700, Alexnb wrote: > . > . > . >> This is just something I've always wanted to do, and am just wondering >> how to >> do it. I

[Tkinter-discuss] Having an icon as a button, or a clickable icon

2008-07-13 Thread Alexnb
This is just something I've always wanted to do, and am just wondering how to do it. If the subject isn't clear, what I mean is like a button that isn't just text, like on a browser, the refresh button isn't "refresh" it is typically the two little arrows. I am wondering how to make buttons like t

Re: [Tkinter-discuss] Stopping a for loop with a sleep() funciton in it

2008-07-13 Thread Alexnb
Cameron Laird-2 wrote: > > On Sun, Jul 13, 2008 at 12:23:29PM -0700, Alexnb wrote: >> >. >> >. >> >. >> > Alex, I'm lost as to what your current status is--what >> > you see as

Re: [Tkinter-discuss] Stopping a for loop with a sleep() funciton in it

2008-07-13 Thread Alexnb
Cameron Laird-2 wrote: > > On Thu, Jul 10, 2008 at 10:30:53PM -0700, Alexnb wrote: > . > . > . >> yes I know it runs in milliseconds. So what do you suggest? 1 millisecond >> is >> about what

Re: [Tkinter-discuss] Stopping a for loop with a sleep() funciton in it

2008-07-13 Thread Alexnb
Cameron Laird-2 wrote: > > On Thu, Jul 10, 2008 at 10:35:03PM -0700, Alexnb wrote: > . > [hundreds of lines] > . > . >> I am not that familiar with teh after call, but when I change it to th

[Tkinter-discuss] Getting rid of the title bar

2008-07-12 Thread Alexnb
For part of the app I am writing I want to be able to temporarily make the title bar go away, and then bring it back. I vaguely remember reading about a Tkinter method that could do this, but don't remember. Does anyone know how I should do this? -- View this message in context: http://www.nabbl

[Tkinter-discuss] Icon on title bar in macOSX

2008-07-11 Thread Alexnb
I know that in a normal windows python Tkinter app you would use: root.wm_iconbitmap("/Icons for App/Windows.ico") to make an icon in the title bar. However, when you do that in mac OSX you can't see it. I am not sure if it is because the x - and+ are on the left side, or because it just doesn't

Re: [Tkinter-discuss] Stopping a for loop with a sleep() funciton in it

2008-07-10 Thread Alexnb
Alexnb wrote: > > yes I know it runs in milliseconds. So what do you suggest? 1 millisecond > is about what I want. it was .1 seconds for the sleep() time. > I didn't write this code I found it online so I don't really understand > it, but I know that is where the

Re: [Tkinter-discuss] Stopping a for loop with a sleep() funciton in it

2008-07-10 Thread Alexnb
Polo wrote: > > On Thu, Jul 10, 2008 at 8:45 PM, Guilherme Polo <[EMAIL PROTECTED]> wrote: >> On Thu, Jul 10, 2008 at 8:24 PM, Alexnb <[EMAIL PROTECTED]> wrote: >>> >>> >>> >>> Guilherme Polo wrote: >>>> >>>> On Thu, Jul

Re: [Tkinter-discuss] Stopping a for loop with a sleep() funciton in it

2008-07-10 Thread Alexnb
Guilherme Polo wrote: > > On Thu, Jul 10, 2008 at 7:31 PM, Alexnb <[EMAIL PROTECTED]> wrote: >> >> >> >> Guilherme Polo wrote: >>> >>> On Thu, Jul 10, 2008 at 5:57 PM, Alexnb <[EMAIL PROTECTED]> wrote: >>>> >>>&g

Re: [Tkinter-discuss] Stopping a for loop with a sleep() funciton in it

2008-07-10 Thread Alexnb
Guilherme Polo wrote: > > On Thu, Jul 10, 2008 at 5:57 PM, Alexnb <[EMAIL PROTECTED]> wrote: >> >> Okay, so I have a for loop with a sleep command. I want the loop to >> continue >> until it is told to stop. I want to tell it to stop when a list goes fr

[Tkinter-discuss] Stopping a for loop with a sleep() funciton in it

2008-07-10 Thread Alexnb
Okay, so I have a for loop with a sleep command. I want the loop to continue until it is told to stop. I want to tell it to stop when a list goes from empty to having something. The problem is that when that loop starts, the program pretty much stops with it. To make things harder, I really want t

[Tkinter-discuss] Best way to create a loading type bar or dot....

2008-07-10 Thread Alexnb
This may be hard to explain using text, but you have all seen one. What I need to do is to create an object like a loading bar ( a bar like the little bar that comes up when you boot into xp or the circle that comes up when you boot into mac or on the tabs in firefox) or I would like a dot, that s

[Tkinter-discuss] Creating a tag, and setting a margin

2008-07-08 Thread Alexnb
Okay, this may sound noobish, but I just cannot figure this out. I am trying to set a tag in a Text widget of mine, but I don't know how and I am also trying to set a margin for the tag, but I have no clue how to do either! Please help this poor noob! -- View this message in context: http://www.

[Tkinter-discuss] Re stating what I want

2008-07-05 Thread Alexnb
Okay, right now I have a textbox formatted by spaces. Not good. I need to learn to use the margins but that is a whole other issue I am having. But I am wondering now, can I save the textbox to a file as it looks in the textbox, meaning with the margins set and all. And while on that topic, is it

Re: [Tkinter-discuss] Taking a Text() widget and saving it to a .txt file

2008-07-04 Thread Alexnb
ext files don't really have formatting, apart from >> spaces, tabs or carriage returns. These will be preserved by the get >> method. However other formatting such as font type, font height, >> colour, etc will not. > . > . &g

[Tkinter-discuss] Taking a Text() widget and saving it to a .txt file

2008-07-03 Thread Alexnb
I don't really know if this is possible, but it seems like there should be an easy way. If I have a text widget: text = Text(parent) and I want to take what is in there and save it has a text file. How would I go about doing this. Also, if it matters, I would like to keep it in the same format a

[Tkinter-discuss] Issue with the layout of a frame

2008-07-02 Thread Alexnb
I am in the middle of writing my first big app. I am having trouble with the layout of the frames and buttons. In particular, just one frame. I'll post the code and you can compile it and see what I am talking about. But, when you do there is a red frame with the button "Define" in it. I want this

Re: [Tkinter-discuss] Clearing out a Frame

2008-07-01 Thread Alexnb
Haha!, Brilliant, worked perfectly! Thank you for the help! John McMonagle-3 wrote: > > Alexnb wrote: >> I have an app that has a base frame, and some other frames inside of that >> base frame. My question is if there is some way to clear out the base >> frame. >

[Tkinter-discuss] Clearing out a Frame

2008-07-01 Thread Alexnb
I have an app that has a base frame, and some other frames inside of that base frame. My question is if there is some way to clear out the base frame. Meaning leaving an empty baseframe. See I have a function that pulls up frames inside that base frame. The problem comes when I hit a button(this b

[Tkinter-discuss] displaying images with Label()

2008-06-13 Thread Alexnb
I have looked online for examples and documentation but can't find anything. Not to say that there isn't but I can't find it. Anyway I am wondering how you display images using the Label() function. I tried something like this but it didn't work Label(parent, image="/path/path/image.png") can so

Re: [Tkinter-discuss] Easy way to get a file explorer?

2008-06-12 Thread Alexnb
this: but all I want is the actual path. So how can I do that? Kevin Walzer-5 wrote: > > Alexnb wrote: >> Okay, so in the small app I am creating I want to have a button that >> activates a file explorer and then once the user selects a file I want to >> be >> able to

[Tkinter-discuss] Easy way to get a file explorer?

2008-06-12 Thread Alexnb
Okay, so in the small app I am creating I want to have a button that activates a file explorer and then once the user selects a file I want to be able to get the path of that file. Is there a way to do this without going into serious detail? and if not could someone point me in the right direction

Re: [Tkinter-discuss] how to hit enter and get the Entry() text

2008-06-10 Thread Alexnb
Guilherme Polo wrote: > > On Tue, Jun 10, 2008 at 1:59 AM, Alexnb <[EMAIL PROTECTED]> wrote: >> >> Okay, so I am new to Tkinter, and can't figure out how to get the text >> out of >> my Entry() text box. I know I can make a button or something like th

[Tkinter-discuss] how to hit enter and get the Entry() text

2008-06-10 Thread Alexnb
Okay, so I am new to Tkinter, and can't figure out how to get the text out of my Entry() text box. I know I can make a button or something like that where they click it and I get it. But what I want to do is have the user typing in the box, and then they hit "return" or "enter" and that also gets