tkinter

Removing a selection from a listbox, as well as remove it from the list that provides it

匆匆过客 提交于 2021-02-09 01:51:35
问题 How can I use the following code to delete a selection from a listbox and removing it from the list the contains it also? The selections in the listbox are dictionaries which I store in a list. .................code.............................. self.frame_verDatabase = Listbox(master, selectmode = EXTENDED) self.frame_verDatabase.bind("<<ListboxSelect>>", self.OnDouble) self.frame_verDatabase.insert(END, *Database.xoomDatabase) self.frame_verDatabase.pack() self.frame_verDatabase.config

Removing a selection from a listbox, as well as remove it from the list that provides it

回眸只為那壹抹淺笑 提交于 2021-02-09 01:43:08
问题 How can I use the following code to delete a selection from a listbox and removing it from the list the contains it also? The selections in the listbox are dictionaries which I store in a list. .................code.............................. self.frame_verDatabase = Listbox(master, selectmode = EXTENDED) self.frame_verDatabase.bind("<<ListboxSelect>>", self.OnDouble) self.frame_verDatabase.insert(END, *Database.xoomDatabase) self.frame_verDatabase.pack() self.frame_verDatabase.config

Tkinter Button Alignment in Grid

别等时光非礼了梦想. 提交于 2021-02-09 00:45:48
问题 I am attempting to fit two buttons on a grid within a frame, that takes up the entire row, no matter the size of the root frame. So essentially one button takes up half of the row, while the other takes the other half. Here's my code: self.button_frame = tk.Frame(self) self.button_frame.pack(fill=tk.X, side=tk.BOTTOM) self.reset_button = tk.Button(self.button_frame, text='Reset') self.run_button = tk.Button(self.button_frame, text='Run') self.reset_button.grid(row=0, column=0) self.run_button

Why does tcl/tkinter only support BMP characters?

孤街醉人 提交于 2021-02-08 15:10:26
问题 I am trying to query and display utf-8 encoded characters in a gui built on tkinter and thus tcl. However, I have found that tkinter cannot display 4-byte characters i.e. unicode codepoints greater than U+FFFF. Why is this the case? What limitations would implementing non-BMP characters have for tcl? I can't query non-BMP characters through my gui, but if they come up in a result I can copy/paste the character and see the character/codepoint through unicode-table.com despite my system not

Why does tcl/tkinter only support BMP characters?

允我心安 提交于 2021-02-08 15:06:52
问题 I am trying to query and display utf-8 encoded characters in a gui built on tkinter and thus tcl. However, I have found that tkinter cannot display 4-byte characters i.e. unicode codepoints greater than U+FFFF. Why is this the case? What limitations would implementing non-BMP characters have for tcl? I can't query non-BMP characters through my gui, but if they come up in a result I can copy/paste the character and see the character/codepoint through unicode-table.com despite my system not

How to print results from text file to window using Python [closed]

我的未来我决定 提交于 2021-02-08 12:13:35
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . Improve this question I have a text file with a bunch of names and figures that I would like to print to my window. I am using Python 3.3 and Tkinter. So to elaborate I would like the program to read a the text file and then show the contents of the text file in the program

how to close a tkinter window without terminating the program?

江枫思渺然 提交于 2021-02-08 12:06:51
问题 i have a project that i am working on for class and i am using tkinter to build my basic GUI. when i run the code i have two drop down menus to choose options from. i also want a button to close the window and advance the program to the next GUI window. however i can not get a button to close the window without also causing the program to terminate. here is my code from tkinter import * Options_year = ["2014", "2013", "2012", "2011", "2010"] Options_month = ["January","February", "March",

how to close a tkinter window without terminating the program?

核能气质少年 提交于 2021-02-08 12:04:31
问题 i have a project that i am working on for class and i am using tkinter to build my basic GUI. when i run the code i have two drop down menus to choose options from. i also want a button to close the window and advance the program to the next GUI window. however i can not get a button to close the window without also causing the program to terminate. here is my code from tkinter import * Options_year = ["2014", "2013", "2012", "2011", "2010"] Options_month = ["January","February", "March",

how to close a tkinter window without terminating the program?

落爺英雄遲暮 提交于 2021-02-08 12:03:55
问题 i have a project that i am working on for class and i am using tkinter to build my basic GUI. when i run the code i have two drop down menus to choose options from. i also want a button to close the window and advance the program to the next GUI window. however i can not get a button to close the window without also causing the program to terminate. here is my code from tkinter import * Options_year = ["2014", "2013", "2012", "2011", "2010"] Options_month = ["January","February", "March",

Pulling excel rows to display as a grid in tkinter

戏子无情 提交于 2021-02-08 12:02:40
问题 I am imaging fluorescent cells from a 384-well plate and my software spits out a formatted excel analysis of the data (16 rowsx24 columns of images turns into a list of data, with 2 measurements from each well, ~800 data points). Because there is a lot of manual interaction with the data, I want to automate my work by taking the information that's indexed in the excel sheet and map it as a tkinter grid. I want to take my data, have it formatted from a list back to the original 16x24 display.