Posts

ads2

Complete Python Database Project with sqlite3

Image
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 ...

Image Viewer in C++ with Source Code

Image
* C++ Tutorial Demo with Source Code :  I will show that how to make image viewer using wxDev C++ IDE How to make image viewer :- (Screen Shot) You need one button , one OpenFileDialog, One WxEdit , WxStaticBitmap Open Button Code Here :------- wxString filePath; int w, h, NewW,NewH; wxImage img; int PhotoMaxSize = 250; if (WxOpenFileDialog1->ShowModal()==wxID_OK){     WxEdit1->SetValue(WxOpenFileDialog1->GetPath());     filePath = WxEdit1->GetValue();     img = wxImage(filePath, wxBITMAP_TYPE_ANY);     w = img.GetWidth();     h = img.GetHeight();     if (w>h){         NewW = PhotoMaxSize;         NewH = PhotoMaxSize * h/w;     }     else{         NewH = PhotoMaxSize;         NewW = PhotoMaxSize * w/h;     }          img = img.Scale(NewW, Ne...

Ads4