Skip to content

Commit

Permalink
更新github弹框输入用户名
Browse files Browse the repository at this point in the history
  • Loading branch information
kangvcar committed Jul 6, 2020
1 parent 0e56172 commit a36bb15
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 48 deletions.
28 changes: 16 additions & 12 deletions tools/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
except OSError:
pass

import shgjj
from A12306 import main12306
from JdSpider.jd_more_info import JSpider
from alipay.main import ASpider
from ctrip.main import Ctrip
from mail.main import YSpider
from shgjj.main import GjjSpider
from taobao.spider import TaobaoSpider
from telephone.main import LianTong, DianXin
from yidong.main import YiDong
import Scripts.shgjj
from Spiders.A12306 import main12306
from Spiders.JdSpider.jd_more_info import JSpider
from Spiders.alipay.main import ASpider
from Spiders.ctrip.main import Ctrip
from Spiders.mail.main import YSpider
from Spiders.shgjj.main import GjjSpider
from Spiders.taobao.spider import TaobaoSpider
from Spiders.telephone.main import LianTong, DianXin
from Spiders.yidong.main import YiDong


class Button:
Expand Down Expand Up @@ -167,7 +167,7 @@ def OnClick(self, event):
self.updateStatus(self.frame,2)
return

from chsi.main import Chis
from Spiders.chsi.main import Chis
try:
chis = Chis(cookie_str)
p1, p2, x = chis.get_xueji_info()
Expand Down Expand Up @@ -538,7 +538,11 @@ def OnClick(self, event):

class GithubButton(Button):
def OnClick(self, event):
pass
dlg = wx.TextEntryDialog(None, u"请输入Github用户名:", u"获取Github用户信息")
if dlg.ShowModal() == wx.ID_OK:
message = dlg.GetValue() # 获取文本框中输入的值
# print(message)
dlg.Destroy()

class QqButton(Button):
def OnClick(self, event):
Expand Down
36 changes: 0 additions & 36 deletions uitest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,3 @@

import wx


class Example(wx.Frame):

def __init__(self, parent, title):
super(Example, self).__init__(parent, title=title)

self.InitUI()
self.Centre()

def InitUI(self):

panel = wx.Panel(self)

panel.SetBackgroundColour('#4f5049')
vbox = wx.BoxSizer(wx.VERTICAL)

midPan = wx.Panel(panel)
midPan.SetBackgroundColour('#ededed')

vbox.Add(midPan, wx.ID_ANY, wx.EXPAND | wx.ALL, 20)
panel.SetSizer(vbox)


def main():

app = wx.App()
ex = Example(None, title='Border')
ex.Show()
app.MainLoop()


if __name__ == '__main__':
main()

if __name__ == '__main__':
main()

0 comments on commit a36bb15

Please sign in to comment.