Posts

Showing posts with the label textbox

how can i take an input with a textbox1 // use a for loop to count till 50 // and output it in textbox2

Image
Clash Royale CLAN TAG #URR8PPP how can i take an input with a textbox1 // use a for loop to count till 50 // and output it in textbox2 i got a textbox id="t1" that takes one input lets say the input is: 20 i use a nother textbox id="t2" for the output which shoold look like this: 21 22 23 24 25 ... 49 50 1 2 3 4 5 ... max lenght of the "numbers" = 50 with a break after every number i did the following code:: <!DOCTYPE html> <html> <head> <title></title> <script type="text/javascript"> function add() { var a = document.getElementById("t1").value; for(i = a; i<51; i++) { a+=i +"<br>"; } document.getElementsByName("t4")[0].value= a; } </script> </head> <body> <input class="t1" type="number" id="t1"> <button onclick="add()">Add</button> <br><br> <input...

How can i give input bengali or Unicode languages in tkinter python

Image
Clash Royale CLAN TAG #URR8PPP How can i give input bengali or Unicode languages in tkinter python I am beginner in GUI platform in python.I tr to Create a text box , but when i input other language except English specially Bengali it shows ??. Can anyone help me out . I attach my code and sample output try: from tkinter import * import sys except ImportError: from tkinter import * import sys class App(object): def __init__(self,parent): self.frame1 = Frame(parent, highlightbackground="green", highlightcolor="#666D00", highlightthickness=7, width=700, height=700, bd= 10) self.frame1.pack() self.frame1.pack_propagate(False) parent.geometry("700x700") parent.resizable(0, 0) self.frame1.configure(background='white') self.text1 = Label(text="আপনার অনুচ্ছেদ পূরণ করুন (বাংলা):",font=("Lohit Bengali", 16)) self.text1.place(x=110, y=100) self.T ...