user-interface

how to use tkinter with sqlite in python

旧巷老猫 提交于 2020-05-14 11:47:30
问题 I had issues with delivering tkinter entry to sqlite My goal is build user interface to collect data and delete, show, update, I will keep learning. I think my problem in def savedata (): I changed what inside brackets I tried change this also c.execute('INSERT INTO data (fname, sname) VALUES (?,?)', (firstname_entry, secondnamename_entry)) conn.commit() . thank for helping . import random import tkinter as tk from tkinter import * from tkinter import messagebox import sqlite3 def conacona():

how to use tkinter with sqlite in python

北城以北 提交于 2020-05-14 11:45:25
问题 I had issues with delivering tkinter entry to sqlite My goal is build user interface to collect data and delete, show, update, I will keep learning. I think my problem in def savedata (): I changed what inside brackets I tried change this also c.execute('INSERT INTO data (fname, sname) VALUES (?,?)', (firstname_entry, secondnamename_entry)) conn.commit() . thank for helping . import random import tkinter as tk from tkinter import * from tkinter import messagebox import sqlite3 def conacona():

how to use tkinter with sqlite in python

久未见 提交于 2020-05-14 11:45:10
问题 I had issues with delivering tkinter entry to sqlite My goal is build user interface to collect data and delete, show, update, I will keep learning. I think my problem in def savedata (): I changed what inside brackets I tried change this also c.execute('INSERT INTO data (fname, sname) VALUES (?,?)', (firstname_entry, secondnamename_entry)) conn.commit() . thank for helping . import random import tkinter as tk from tkinter import * from tkinter import messagebox import sqlite3 def conacona():

How can I create a small IDLE-like Python Shell in Tkinter?

萝らか妹 提交于 2020-05-12 12:22:43
问题 I'm trying to make a thing controlled by a Python Shell GUI. The only thing is, I don't know how to make that whole input/output thing. I just want to be able to type an input, execute the python command and give the output of the python command. I know that IDLE is made in Tkinter, so it uses the widgets? It's literally just a "type input, show output" thing. I've tried searching it up but it seems like most of the results are to do with the command line, which isn't what I'm looking for.

How to disable splash highlight of FlatButton in Flutter?

跟風遠走 提交于 2020-05-11 03:49:30
问题 I have a FlatButton. I don't want the splash highlight when the button is clicked. I tried changing the splash colour to transparent, but that didn't work. Here is the code for my FlatButton. Widget button = new Container( child: new Container( padding: new EdgeInsets.only(bottom: 20.0), alignment: Alignment.center, child: new FlatButton( onPressed: () { _onClickSignInButton(); }, splashColor: Colors.transparent, child: new Stack( alignment: Alignment.center, children: <Widget>[ new Image

Drag and Drop between two draggable Flatlist-React Native

回眸只為那壹抹淺笑 提交于 2020-05-10 21:16:31
问题 I'm struggling to create a requirement for my React-Native application where I am having a blank dropbox(on dropping a flatlist item it should convert into a draggable flatlist) and a draggable flatlist from where I have to drag and drop to the blank dropbox and vice-versa. The items in both the flatlists should have a right side menu on click to which should show a option to move to the item to the other flatlist. I know it's a very common scenario but as I'm quite new to React-Native so I

Drag and Drop between two draggable Flatlist-React Native

眉间皱痕 提交于 2020-05-10 21:15:02
问题 I'm struggling to create a requirement for my React-Native application where I am having a blank dropbox(on dropping a flatlist item it should convert into a draggable flatlist) and a draggable flatlist from where I have to drag and drop to the blank dropbox and vice-versa. The items in both the flatlists should have a right side menu on click to which should show a option to move to the item to the other flatlist. I know it's a very common scenario but as I'm quite new to React-Native so I

Drag and Drop between two draggable Flatlist-React Native

亡梦爱人 提交于 2020-05-10 21:13:08
问题 I'm struggling to create a requirement for my React-Native application where I am having a blank dropbox(on dropping a flatlist item it should convert into a draggable flatlist) and a draggable flatlist from where I have to drag and drop to the blank dropbox and vice-versa. The items in both the flatlists should have a right side menu on click to which should show a option to move to the item to the other flatlist. I know it's a very common scenario but as I'm quite new to React-Native so I

Linux get notification on focused gui window change

社会主义新天地 提交于 2020-05-10 06:18:48
问题 In linux, is it possible to get notifications when the currently focused GUI app changes? I'm writing an app that tracks how long a user stays on each GUI app(per process, not within one process), and need some way to access this information. I'm doing this in c++. Here is what I have found so far: xprop -id $(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}') | awk '/_NET_WM_PID\(CARDINAL\)/{print $NF}' This prints out the pid of the currently focused app, but would require me to

pyqt updating progress bar using thread

孤者浪人 提交于 2020-05-09 12:07:10
问题 I want to update the progress bar from my main.py using thread approach. if __name__ == "__main__": app = QApplication(sys.argv) uiplot = gui.Ui_MainWindow() Update_Progressbar_thread = QThread() Update_Progressbar_thread.started.connect(Update_Progressbar) def Update_Progressbar(): progressbar_value = progressbar_value + 1 while (progressbar_value < 100): uiplot.PSprogressbar.setValue(progressbar_value) time.sleep(0.1) uiplot.PSStart_btn.clicked.connect(Update_Progressbar_thread.start) The