Brak podglądu blog.furas.pl Selenium: Send clipboad to field in browser [GB] When you find input field on page then you can send Ctrl+V to send text from clipboard to this field. \n import selenium.webdriver \n from selenium.webdriver.common.keys import Key... 11.02.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python Python: problem to install gattlib on Linux Mint and Ubuntu [GB] It has problem because GCC tries to include boost-python36.a (or boost-python37.a) but system has only boost-python3-py36.a (or boost-python3-py37.a) You can check it using locate... 10.02.2020 blog.furas.pl
Brak podglądu blog.furas.pl · ml Alternative for Google Colab [GB] Tools for remote Machine Learning and Deep Network - using GPU and TPU: Google Colab Amazone SageMaker IBM Watson Studio Microsoft Azure Similar tools: Jupyter Kaggle (after creati... 27.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · ml Alternatywa dla Google Colab Narzędzia pozwalające na zdalne używanie Machine Learning i Deep Network - z użyciem GPU i TPU: Google Colab Amazone SageMaker IBM Watson Studio Microsoft Azure Pobodne narzędzia:... 27.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python/tkinter Tkinter PandasTable Examples [GB] It is few examples how to use pandastable to create table in tkinter with data from pandas dataframe. Installation pip install pandastable Dependencies numpy pandas matplotlib nume... 27.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python scraping BeautifulSoup: How to get text from tag There are different functions to get text from tag. .text - all text from tag and subtags .string - only if there is no subtags .get_text(strip, separator) - you can remove whitesp... 21.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python scraping BeautifulSoup: Jak pobrać tekst z tagu Jest kilka róznych funkcji do pobierania tekstu z tagu. .text - cały tekst z tagu i podtagów .string - tylko jeśli nie ma podtagów .get_text(strip, separator) - można usunąć białe... 21.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python/pygame PyGame Example: object bounces on border [GB] import pygame # --- constanst --- (UPPER_CASE_NAMES) RED = (255, 0, 0) BLACK = (0, 0, 0) WIDHT = 500 HEIGHT = 500 # --- main --- speed = 10 pygame.init() window = pygame.display.se... 21.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python/pygame PyGame Przykład: obiekt odbija się on krawędzi import pygame # --- constanst --- (UPPER_CASE_NAMES) RED = (255, 0, 0) BLACK = (0, 0, 0) WIDHT = 500 HEIGHT = 500 # --- main --- speed = 10 pygame.init() window = pygame.display.se... 21.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python requests Requests: use Imgur API to upload image[GB] First you have to create normal account on Imgur. After loging to normal account you can go to https://api.imgur.com/oauth2/addclient to register application. It needs application... 21.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python requests Requests: użycie Imgur API do załadowania zdjęcia Najpierw trzeba założyć normalne konto na Imgur. Po zalogowaniu na normalnym konice należy przejść do https://api.imgur.com/oauth2/addclient aby zarejestrować aplikację. Wymagana j... 21.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python/tkinter Tkinter Example: use after() to add to Listbox with Scrollbar [GB] It shows how to create Listbox with Scrollbar (on right side) and how to use after() to insert new element on list every 1000ms (1s). New element doesn't need '\n' import tkinter a... 21.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python/tkinter Tkinter Example: use Checkbutton to start and stop timer [GB] When you select Checkbutton then it start timer (but without displayint it). When you deselect Checkbutton then it stop timer and display time cumulated with previous time import t... 21.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python/tkinter Tkinter Example: use `eval()` to calculate equation [GB] It shows how to get values and equation from Entry and use eval() to calculate it. import tkinter as tk # --- functions --- def solve(): x = float(entry_x.get()) y = float(entry_y.... 21.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python/tkinter Tkinter Example: use many Checkbuttons with IntVar or StringVars [GB] It uses dictionary to keep many IntVar which are used with Checkbutton import tkinter as tk # --- functions --- def confirm(): for key, item in all_int_vars.items(): if item.get()... 21.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python/tkinter Tkinter: how to use pynput keyboard listener together with tkinter GUI In documentation you can see example for pynput Monitoring The keyboard with keyboard.Listener(on_press=on_press, on_release=on_release) as listener: listener.join() which blocks c... 21.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python/tkinter Tkinter Przykład: użycie after() aby dodać do Listbox z Scrollbar Przykład pokazuje jak stworzyć Listbox z Scrollbar (po prawej stronie) oraz jak użyć after() aby dodać nowy element do listy co 1000ms (1s). Nowy element nie wymaga '\n' import tki... 21.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python/tkinter Tkinter Przykład: użycie Checkbutton do uruchomienia i zatrzymania timera Gdy zaznaczysz Checkbutton wtedy timer zostanie uruchomiony (bez wyświetlania czasu). Gdy oznaczysz Checkbutton wtedy timer zostanie zatrzymany i wyświetlony czas zsumowany z porze... 21.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python/tkinter Tkinter Przykład: użycie `eval()` do policzenia wyrażenia Przykład pokazuje jak pobrać wartości i wyrażenie z Entry i użyć eval() do jego policzenia. import tkinter as tk # --- functions --- def solve(): x = float(entry_x.get()) y = float... 21.01.2020 blog.furas.pl
Brak podglądu blog.furas.pl · python/tkinter Tkinter Przykład: użycie wielu Checkbutton wraz z IntVar lub StringVar Przykład wykorzystuje słownik (dictionary) do przechowywania wielu IntVar, które są przypisane do Checkbutton import tkinter as tk # --- functions --- def confirm(): for key, item... 21.01.2020 blog.furas.pl