This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: euc-kr -*- | |
import wx | |
import wx.lib.mixins.listctrl as listmix | |
import time | |
#---------------------------------------------------------------------- | |
keyMap = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wx, wx.grid as grd | |
class MyGrid(grd.Grid): | |
def __init__(self, parent): | |
grd.Grid.__init__(self, parent, -1, pos=(10,40), size=(420,95)) | |
self.CreateGrid(3,3) | |
self.RowLabelSize = 0 | |
self.ColLabelSize = 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import wx | |
import time | |
class Example(wx.Frame): | |
def __init__(self, parent, title): | |
super(Example, self).__init__(parent, title=title, size=(250, 150)) | |
self.bmp = None | |
self.timeOn = True # 캡쳐사진에 시간표시. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyPrintout(wx.Printout): | |
def __init__(self,page_bitmap): | |
wx.Printout.__init__(self) | |
self.page_bitmap = page_bitmap # 인쇄할것을 bitmap으로 넘겨받는다. | |
self.margins = (wx.Point(15,15), wx.Point(15,15)) # 여백 15mm | |
self.numPages = 1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import wx | |
class MyFrame(wx.Frame): | |
def __init__(self, parent): | |
wx.Frame.__init__(self, parent) | |
panel = wx.Panel(self) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
int main() | |
{ | |
cv::Mat image; // create an empty image | |
image = cv::imread("D:\\opencv\\build\\doc\\opencv-logo.png"); // read an input image | |
// define the window (optional) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
plt.axvline(x=0, color = 'r') # draw x =0 axes | |
plt.axhline(y=0, color = 'r') # draw y =0 axes | |
x = np.arange(-10,10) | |
y = 2*x + 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QApplication> | |
#include <QPushButton> | |
int main(int argc, char **argv) | |
{ | |
QApplication app (argc, argv); | |
QPushButton button ("Hello world !"); | |
button.show(); | |
OlderNewer