Tkinter text highlighting in python
I wanna know how to change the style of certain words, expressions .. etc based on certain pattens.
I am using the Tkinter.Text widget and I am not sure how can we do such thing (The same idea of syntax highlighting in text editors). I am not sure even if this is the right widget to use for that purpose.
Hey everyone reading this, I've recently got into doing GUI development with Python. Tkinter seems like the easiest and most logical choice starting out. I did a little with wxPython but it was more s
I've been working on a text editor using Tkinter in Python 2.7. A feature that I'm trying to implement is the Night Mode, where the user can toggle between a black background and a light one, that swi
I'm working on Windows XP, with Python 2.6.x and TKinter. Using a text widget in the app, but the standard popup menu (cut, copy, paste, delete, select all) is missing. How to make it appear?
Full disclosure, this is a cross-post from Reddit. Code here. I have a script that I have worked on that is using tkinter to popup some boxes to collect some information from a user. This information
I'm trying to create a text widget in Tkinter (for Python) whose font size can change, but when this happens I don't want the widget to resize itself. All of the text in the widget is the same font st
I only started to learn how to build GUIs. Is there any way to set the size of the textbox? I tried to use .geometry, but it was wrong: from Tkinter import * root = Tk() root.title(boop) root.geomet
I really like text highlighting in Vim for searches and Shift-8. Is there anyway to enable it in VsVim on VS 2010 or VS 2012?
I'm very new to Python, sort of following Dive into Python 2 and wanted to dabble with some Tkinter programming. I've tried to make a little program that takes 3 sets of words and makes combinations o
sorry if the question is confused - I'm confused too. Starting to program in python I felt at home with its error reporting. Now that I'm programming with Tkinter instead, I'm finding that it often ha
How to run multiple processes in python without multithreading? For example consider the following problem:- We have to make a Gui,which has a start button which starts a function(say, prints all inte
I am using emacs 23 -nw and xterm installed on Debian Squeeze. I need highlighting with python but I don't have it. How can I enable it? Edit: Thanks for all answers, the problem is that I have goog
I'm learning python and encountering issues with what appears to be class decorators from tkinter. I can get tkinter to work as long as I never try to decorate with Frame. The code below gives me no e
Well since this is my first day learning Python I hope people don't mind for newbie question I have a Tkinter with GUI layout like this: Label(base, text=Site URL: ,width=15).grid(row=0,column=0,sti
I'm having trouble getting an event binding to work with python/tkinter. I'm simply trying to click and have the location printed, but every time I do this, -1 is the result. Here's my code from Tki
I am creating a text based game, and would like to have a counter of how many seconds it has been running, this is my first time using tkinter so I'm not totally sure I'm doing it all correctly. I am
Hi I am developing a single login in python using Tkinter(), I just only want that when the user Logged in correctly the login UI will be hidden and the content UI will display... so I was thinking th
I'm creating a very simple UI using Tkinter and python, but I'm having trouble sizing GUI elements and using the grid format to place them correctly. Here's a first-order approximation of what I'm try
I'm working with the following code. My goal is to get the text of a Checkbutton when it is checked, and append that text to a list. I want to write the code dynamically, because the size of list 'x'
I'm mucking about with Tkinter and Python. I have a basic gui with a couple of buttons on, one button goes away and does something that takes some amount of time, which is variable. The problem is whe
How to imitate this working of table in Tkinter in Python 3?? I chose Tkinter because I have begun my GUI programming in Tkinter. Help me out please O:)
Is there a way to return something when a button is pressed? Here is my sample program. a simple file reader. Is the global variable to hold text contents the way to go since I can't return the conten
I'm having difficulties resolving checkbutton issue in tkinter. I'm trying to modify code found here on stackoverflow from another question. My issue is that my check buttons start off as square chec
I am trying to write some code like this in Python tkinter I want the NewWinButton can only create ONE new window at the time, which means if if NewWin.winfo_exists() == 1: NewWinButton.config(state=
I looking for a simple way to search through a line of text and highlight the line if it contains a specific word. I have a tkinter text box that has lots of lines like: blah blah blah Failed blah bl
I would like to use an autocompletion algorithm in the main text window (not the Tkinter.entry - examples for this can be found) of this simple Tkinter text editor provided in the code box below. I th
I'm trying to get two text boxes that each have scrollbars. When I try this however: from Tkinter import * root = Tk() s_start = Scrollbar(root) t_start = Text(root, width=50, height=10) t_start.focus
What does the 'find_overlapping' function return in python tkinter Canvas? from tkinter import * a = Tk() table = Canvas(a, width=500, height=300, bg='white') table.pack() my_oval = table.create_oval(
I am new to web design. I'm currently working on my school's website, but I encountered a problem. When I highlight a text in .wrap, the highlighting is cut off on the top. Why does this occur and how
When my jTextArea is in focus it allows text highlighting, but it doesn't show the text selection when it loses focus. Is it possible to continue displaying the text highlighting even if the user move
I'm trying to validate the entry of text using Python/tkInter def validate_text(): return False text = Entry(textframe, validate=focusout, validatecommand=validate_text) where validate_text is the
Is it possible to get the x y coordinates of the insertion cursor in a Tkinter Text widget? I'm trying to make a popup menu that pops up next to the insertion cursor.
I'm having some trouble getting everything to line up properly using a grid with Tkinter and Python. I want to have the menu bar at the very top, and then two listboxes (one on each side), with a coup
I am creating a GUI with Python Tkinter. I am able to redirect stdout to a text field, but not sure how to make it read only (with no editing allowed from user). Redirect stdout script so far: class I
Hey guys I am doing a sample project on python. I have made a simple calculator. The thing is that I want that calculator in a box. I have read many articles and I found about Tkinter. The thing is I
This is my first time using Tkinter and Python. I want to run a series of 4 images in a loop. The user interacts with the interface by clicking each image. My 4th image has a compound text which appea
Is there any way to make Eclipse/PyDev highlight the Python built-in functions? For example, the Python IDLE highlights int() or list() but PyDev doesn't. I'm using Eclipse 3.7.1 and PyDev 2.2.3.
Is there a way to draw vertical text in Tkinter library? (Python recommended) textID = w1.create_text(5, 5, anchor=nw) w1.itemconfig(textID, text = This is some text)
I'm using Python Tkinter and I want to place a variable number of text box widgets in a frame or canvas. The text boxes are packed vertically down the frame, so the first one is on top, the second one
I am trying to import Tkinter. However, I get an error stating that Tkinter has not been installed: ImportError: No module named _tkinter, please install the python-tk package I could probably instal
I made a simple text editor in eclipse to which I added some simple WordRule based syntax highlighting to highlight the language keywords. The problem is that when a keyword is part of an identifier (
I'm working with an example file in a tutorial that asks me to first do two imports: from tkinter import * from tkinter import ttk I get an error. I researched a bit and found that in python 2.7.x I
not able to launch my python script. It is complaining that Tkinter module is nowhere to be found.... Uhm, what am I missing? from Tkinter import * ImportError: No module named Tkinter $ sudo port in
I've been working on a very simple python/tkinter script (a .pyw file) and I'd like to change it's application icon (the 'file' icon shown at the explorer window and the start/all programs window, for
I'm making some pretty pictures using a tkinter canvas and overlaying text on top of circles like in the following picture: http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2012/11/6/13522205
I'd like to set text in a textarea or text input using different colors (one or the other is fine, I don't need both). Think of something like simple syntax highlighting. So, let's say I have some key
I am making a simple tkinter GUI with Python and I need to have about 10 or more labels to place. I place the labels using the grid method but after a certain amount it comes up with an error saying
I'm trying to write myself a program that calculates a function taken from a Tk.Entry(). The problem is, when I try to run my display() function (it runs Tkinter, sets up the window, and calls root.Ma
I have a python tkinter code basically aimed to extract a multi-dimension list into a table. Below is what I have: from Tkinter import * def mainApp(Output): RRColor = '#%02x%02x%02x' % (0, 73,144); m
I have made a card matching game using python, and I need it so that when two cards are selected, they are shown for a few seconds and then the code executes to get rid of them or return them. I have
Is it normal that Tkinter's Canvas' create_text 's font size doesn't change when I change the Canvas' scale with canvas.scale ? I thought that, as it is a high level GUI management system, I wouldn't