[Tutor] What is the correct way of signalling and slots in PyQt5?

2019-04-03 Thread Ali M
The application crashes without errors every time any signal is called on the widgets. how should i signal to my functions? for example these signals make the app crash: self.lineEdit.textChanged.connect(self.edit_input) or self.listWidget.clicked.connect(self.listClicked) here is the full code: f

[Tutor] Encrypting shipped sqlite db in app directory

2019-03-29 Thread Ali M
I want to encrypt my sqlite databases which are shipped with the app in it's directory, so that the user can't modify or use it elsewhere, and they will only be accessible for the app to read from, how can i do that? ___ Tutor maillist - Tutor@python.or

[Tutor] Getting current listbox item index and bind it to button (Tkinter)

2018-08-07 Thread Ali M
If i delete this line "self.textbox.delete(1.0, tk.END)" in my enter_meaning function the listbox items won't lower down to 1 item and i just want 1 item to be shown after user searches the item in entrybox. what i want to do is: when user searches in entrybox, the listbox items lowers down to that

[Tutor] Getting current listbox item index and bind it to button (Tkinter)

2018-08-04 Thread Ali M
I have taken the delete statement out of the for loop, but still nothing happens when i click the button. i want that button to take the current list item index and do what the curselection does (which is printing the result in text widget). import sqlite3 as sqlite import tkinter as tk from tkint

[Tutor] Getting current listbox item index and bind it to button (Tkinter)

2018-08-02 Thread Ali M
Hi, in my code i have the curselection in my enter_meaning function, and it works well and prints the result which comes from db to the text widget. When user searches in entrybox the list lowers down to 1 item, how can i get the index of that item and bind it to the button so it will print the res

[Tutor] putting accent on letters while user is typing in Entrybox (Tkinter)

2018-07-16 Thread Ali M
The accents which i want to be automatically converted and put upon letters is circumflex and another one which shape is like the opposite of circumflex. the user types in entrybox and it searches in db which i've created before and has no problem. the words in my db have unicode characters and th

[Tutor] putting accent on letters while user is typing in Entrybox (Tkinter)

2018-07-15 Thread Ali M
Hi. I want to write these (ĝ, ĉ, ĵ, ĥ, ŭ, ĉ) accented letters when the user types (gx, cx, jx, ux, cx). when user types 'gx' for example i want to remove that x and replace it with the accent. how should i do that? and how should i specify which accent goes above which letter? thanks.

[Tutor] getting back my listbox items

2018-06-24 Thread Ali M
Hi, when i do search in my Entrybox the list lowers down to that typed item the code of which i wrote in the update_list function. how should i get listbox items back again after it has been lowered? and another question: if i want to format some specific text in my Text widget i should use Beautif

[Tutor] I get an error while search in my Entry field

2018-06-18 Thread Ali M
Hi, i get an error while searching my Entry field and i don't understand what that means. code: #! /usr/bin/env python3 #GeologyDict by Ali M import sqlite3 as sqlite import tkinter as tk from tkinter import Text from tkinter import Entry from tkinter import Scrollbar from tkinter impor