Search found 2 matches

by karel.penicka
Tue Nov 12, 2024 2:24 am
Forum: Windows Discussion Forum
Topic: Assign bool True/False to button
Replies: 1
Views: 1202

Re: Assign bool True/False to button

This is the solution with .vbs file Dim fso, file, filePath, currentValue, newValue, lineNumber lineNumber = 1 ' Set the line number to work with (1 for the first line, 2 for the second, etc.) filePath = "C:\Users\karel\Documents\symbol\karel.txt" Set fso = CreateObject("Scripting.Fil...
by karel.penicka
Thu Oct 24, 2024 7:17 am
Forum: Windows Discussion Forum
Topic: Assign bool True/False to button
Replies: 1
Views: 1202

Assign bool True/False to button

Hi , I want to set up button , to write me in TXT file True or False , but I dont know how can I this python code use with button. file_path = r"C:\Users\karel\Documents\symbol\karel.txt" # Otevření souboru pro čtení try: with open(file_path, "r") as file: current_value = file.re...