Questions tagged as 'tkinter'

1
answer

Set within an Entry the selected content in a Text

I am finishing to implement a typical search engine in a text editor. The call to open the search panel can be made from the available menu option "Search> " or with the key combination "CTRL + F". Calling the search engine is when you bui...
asked by 11.06.2018 / 13:19
1
answer

Data entered using form made in tkinter are not inserted in the database

I have a Python code with Tkinter where the user must enter their email, password and a destination email. Later this data must be recorded in a database sqlite, but I can not record the data ever. My code is as follows: #!/usr/bin/python #...
asked by 28.04.2018 / 06:03
1
answer

Date updated on Tkinter

I want to do an accountant in Tkinter little by little. At the moment I want you to show me the date in seconds (yes, I know it's a bit weird ...) through this function: def Date_secondsnow(): now = datetime.now() Datesecondsnow = now....
asked by 26.08.2017 / 09:52
1
answer

When referencing a variable of a class: it does not save data

When I create my class, I create a variable called self.canvas_height= self.canvas.winfo_height() in which I store the result number of a method I invoke. So much the better but after that same class I create a function dibujar where...
asked by 17.02.2017 / 17:33
2
answers

How to update values contained in Radiobutton to use them in a Python Tkinter function?

I am trying to place three options using the Radiobutton widget to later use the value of the option selected in a function when a button is pressed. I have found scripts where a variable of type IntVar is defined and then the method...
asked by 07.03.2017 / 20:50
0
answers

Update a single selected record with Tkinter y, Psycopg2 [closed]

I already managed to update with (Psycopg2-Tkinter). But he does it on all records, as I do to apply only to the selected record. Button(self.edit_wind, text='Actualizar', command=lambda: self.edit_records(nombre=new_nombre.get(...
asked by 21.12.2018 / 23:01
1
answer

Python 3.6 - Create my own class in Tkinter

I have an application developed in Tkinter and I would like to create a class to get whenever I need a fixed size window with a text box and a button. But I do not know how to do it. Greetings.     
asked by 16.10.2018 / 08:46
1
answer

_tkinter.TclError: bad listbox index "": must be active, anchor, end, @ x, y, or a number

Hello everyone I am currently trying to insert x amount of Listboxes in each Frame of a Notebook, depending on the number of elements in a dictionary and all this from a for loop, now I have created a function for me to print the name of the sel...
asked by 19.09.2018 / 17:43
1
answer

DIbugraf graphic in Canvas. Tkinter, Python 3.6

Hello, I have a problem when it comes to representing graphics, I'm using Python, specifically the Tkinter library. I have a series of data in an excel file that I export with python to a dataframe: file = pd.read_excel('Usuarios.xlsx') df = p...
asked by 27.08.2018 / 16:55
1
answer

Parameters step notation in python

Hello the following code fragment belongs to tkinter python, however I find a step notation of parameters that I can not find in the documentation. You can offer me help. The syntax is the following config (text = format% args) and the context i...
asked by 31.08.2018 / 16:21