forked from sasongko26/sideka-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
login_edit_kemiskinan.py
78 lines (56 loc) · 2.65 KB
/
login_edit_kemiskinan.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import wx
import peringatan
import edit_data_kemiskinan
import frm_sideka_menu
def create(parent):
return Dialog1(parent)
[wxID_DIALOG1, wxID_DIALOG1BUTTON1, wxID_DIALOG1BUTTON2,
wxID_DIALOG1STATICLINE1, wxID_DIALOG1STATICTEXT1, wxID_DIALOG1STATICTEXT2,
wxID_DIALOG1TEXTCTRL1,
] = [wx.NewId() for _init_ctrls in range(7)]
class Dialog1(wx.Dialog):
def _init_ctrls(self, prnt):
# generated method, don't edit
wx.Dialog.__init__(self, id=wxID_DIALOG1, name='', parent=prnt,
pos=wx.Point(515, 304), size=wx.Size(402, 140), style=wx.CAPTION,
title=u'Otentifikasi')
self.SetClientSize(wx.Size(402, 140))
self.staticText1 = wx.StaticText(id=wxID_DIALOG1STATICTEXT1,
label=u'Password', name='staticText1', parent=self,
pos=wx.Point(16, 64), size=wx.Size(60, 17), style=0)
self.textCtrl1 = wx.TextCtrl(id=wxID_DIALOG1TEXTCTRL1, name='textCtrl1',
parent=self, pos=wx.Point(96, 56), size=wx.Size(296, 25),
style=wx.TE_PASSWORD, value='')
self.staticText2 = wx.StaticText(id=wxID_DIALOG1STATICTEXT2,
label=u'MASUKAN PASSWORD DAHULU', name='staticText2', parent=self,
pos=wx.Point(104, 16), size=wx.Size(203, 17), style=0)
self.button1 = wx.Button(id=wxID_DIALOG1BUTTON1, label=u'Lanjutkan',
name='button1', parent=self, pos=wx.Point(208, 96),
size=wx.Size(184, 30), style=0)
self.button1.Bind(wx.EVT_BUTTON, self.OnButton1Button,
id=wxID_DIALOG1BUTTON1)
self.button2 = wx.Button(id=wxID_DIALOG1BUTTON2,
label=u'Kembali Ke Menu', name='button2', parent=self,
pos=wx.Point(16, 96), size=wx.Size(184, 30), style=0)
self.button2.Bind(wx.EVT_BUTTON, self.OnButton2Button,
id=wxID_DIALOG1BUTTON2)
self.staticLine1 = wx.StaticLine(id=wxID_DIALOG1STATICLINE1,
name='staticLine1', parent=self, pos=wx.Point(16, 40),
size=wx.Size(368, 2), style=0)
def __init__(self, parent):
self._init_ctrls(parent)
def OnButton1Button(self, event):
oneng = 'andri'
user_password = self.textCtrl1.GetValue()
if user_password == oneng:
self.main=edit_data_kemiskinan.create(None)
self.main.Show()
self.Close()
else:
self.Close()
self.main=peringatan.create(None)
self.main.Show()
def OnButton2Button(self, event):
self.Close()
self.main=frm_sideka_menu.create(None)
self.main.Show()