Posts by Gabriel Faggione • 153 points
12 posts
-
1
votes1
answer39
viewsA: Why does the background color of my Frame not change during the execution of my application in Tkinter, even with the setting of the bg parameter?
is that when you create a Frame, by default the Width and its Height is 0, so they are red and blue. height= Default is 0. (height/height) width= Default value is 0. (width/Width) So the correct way…
-
2
votes1
answer65
viewsA: two are in the same row within a list
This is called list comprehension, has the function to minimize lines of code and leave the code more 'pythonico'. To better explain, this same variable could be written like this: # instanciação da…
-
0
votes1
answer44
viewsA: Create links that can be copied or clicked on Tkinter
Tkinter itself has an access to Clipboard, which in this case is Ctrl C. Perhaps a way would be after generating the converted text appear a button that calls a function that makes the following…
-
0
votes1
answer77
viewsA: I cannot use Jsonconverter in Json.Net with Unity
Unity has its own Json class which is Jsonutility, I recommend you take a look but briefly you need to know 4 things: The output/input object needs to give a [Serializable] or have Unity…
-
0
votes1
answer52
viewsA: How to use Olliders in Unity?
There are several ways you could try to do, maybe measure the distance that was thrown from the ball to the basket or make only a circular Collider within the 2 point area, so if the player is in…
-
0
votes1
answer108
viewsA: Save application information on exit (Tkinter)
You need to add a Protocol to your root to detect user closure. I made some changes and some notes for you to understand better from tkinter import ttk import tkinter class jogo: def…
-
1
votes1
answer415
viewsA: Radio button selection - Selenium and Python
By inspecting this page you can see that the content you need to access is within an Iframe, so if you try to access Selenium directly you will never be able to find, even with the full Xpath…
-
1
votes1
answer320
viewsA: How do Tkinter wait for user interaction during the script?
is the following, when you create a Tk() you have to declare its mainloop Texte.mainloop() what happens is that you calling a function that comes before this mainloop kind of will never work user…
-
1
votes1
answer510
viewsA: How to change location buttons dynamically using Tkinter?
Dude turned out nice what you did but there are some mistakes first, when you create a frame, it kind of has its own grid, and in your code you end up creating two to separate the top line from the…
-
0
votes1
answer140
viewsA: How to limit the number of lines in a Listbox in Tkinter
Face if you need that whenever the user type something and the listbox accompanies the last item you can use the see method of listbox def enviar_msg(self, event): txt = self.entry_txt.get('0.0',…
-
0
votes2
answers212
viewsA: Error while installing Spacy
Dude, I stayed a long time to try to solve this and it’s very simple, uninstall the 32-bit python and install the 64-bit then just give the Pip install Spacy and it’s over I hope this helps you!…
-
0
votes1
answer699
viewsA: Tkinter, how to update label on canvas?
I think an easy solution would be to create the Abels put them in a list, since you’re creating all of them inside a loop for, it’s kind of the best way not to have to create 100 variables,…