Here You can learn how to load sqlite3 data into datagrid using Python . * How to Insert *How to Delete *How to Save *How to Load *Exit button code and *How to search (Screen Shot) **************************************** import os import wx import wx.xrc import wx.grid import sqlite3 import re import string import gettext cwd = os.path.abspath(os.curdir) def connect(): con_str = cwd + '/folder/Test.db' cnn = sqlite3.connect(con_str) return cnn cnn.close() def data_rows(): con = connect() cur = con.cursor() cur.execute("SELECT * FROM DATA") rows = cur.fetchall() i = 0 for r in rows: i+= 1 return i def single_quote_remover(text): return text.replace ("'","/") class Database ( wx.Frame ): def __init__( self, parent ): wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title =
Complete StopWatch in Java with source code : (Screen Shot) **************************************** Code Start from Here: package stopwatch; /** * * @author Md. Khafi Hossain */ public class Main extends javax.swing.JFrame { static int milliseconds = 0; static int seconds = 0; static int minutes = 0; static int hours = 0; static boolean state = true; /** * Creates new form Main */ public Main() { initComponents(); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code"> private void initComponents() { jLabel1 = new javax.swing.JLabel(); jButton1 = n
System sound recorder including microphone with vb.net complete code Please Like & Share code from here ************************ Imports System Imports System.Collections.Generic Imports System.ComponentModel Imports System.Data Imports System.Drawing Imports System.Linq Imports System.Text Imports System.Windows.Forms Imports NAudio.Wave Imports NAudio.CoreAudioApi Imports System.IO Imports System.Diagnostics Imports System.ComponentModel.Composition Public Class Form1 Dim Time As New DateTime Private waveIn As IWaveIn Private writer As WaveFileWriter Private outputFilename As String Private outputFolder As String Public Sub New() InitializeComponent() If Environment.OSVersion.Version.Major >= 6 Then LoadWasapiDevicesCombo() Else ComboBox1.Enabled = False radioButtonWasapiLoopback.Enabled = False End If outputFolder = Application.StartupPath & "\Temp"
Comments
Post a Comment