コード例 #1
0
ファイル: comicform.py プロジェクト: Roxxas21/testcomic
    def __build_progbar(self):
        ''' Builds and returns the progress bar for this form. '''

        pb = ProgressBar()
        pb.Minimum = 0
        pb.Maximum = 0
        pb.Step = 1
        pb.Value = 0
        pb.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right
        pb.Width = 320
        pb.Height = 20
        pb.Location = Point(13, 15)
        return pb
コード例 #2
0
 def __build_progbar(self):
    ''' Builds and returns the progress bar for this form. '''
    
    pb = ProgressBar()
    pb.Minimum = 0
    pb.Maximum = 0
    pb.Step = 1
    pb.Value = 0
    pb.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right
    pb.Width = 320
    pb.Height = 20
    pb.Location = Point(13, 15)
    return pb
コード例 #3
0
ファイル: progressbarform.py プロジェクト: Roxxas21/testcomic
    def __init__(self, owner, scrape_engine):
        '''
      Initializes this ProgressBarForm with the given owner window, and the
      given ScrapeEngine object, which will be cancelled if the user closes 
      this Form manually.
      '''

        CVForm.__init__(self, owner, "pbformLocation")

        pb = ProgressBar()
        pb.Minimum = 0
        pb.Maximum = 1
        pb.Step = 1
        pb.Value = 0

        self.Height = 45
        self.Width = 400
        pb.Width = 400
        self.Controls.Add(pb)

        self.pb = pb
        self.__scrape_engine = scrape_engine
        self.__cancel_on_close_b = True
コード例 #4
0
    def __init__(self, owner, scrape_engine):
        """
      Initializes this ProgressBarForm with the given owner window, and the
      given ScrapeEngine object, which will be cancelled if the user closes 
      this Form manually.
      """

        CVForm.__init__(self, owner, "pbformLocation")

        pb = ProgressBar()
        pb.Minimum = 0
        pb.Maximum = 1
        pb.Step = 1
        pb.Value = 0

        self.Height = 45
        self.Width = 400
        pb.Width = 400
        self.Controls.Add(pb)

        self.pb = pb
        self.__scrape_engine = scrape_engine
        self.__cancel_on_close_b = True
コード例 #5
0
    def __init__(self, contents):
        self.Contents = contents
        self.BackColor = Color.FromArgb(25, 25, 25)
        self.ForeColor = Color.FromArgb(231, 231, 231)
        self.Size = Size(200, 605)
        self.Text = '{0} - v{1}'.format(self.ScriptName, self.CurVer)
        self.TopMost = True

        self.box = GroupBox()
        self.box.BackColor = Color.FromArgb(25, 25, 25)
        self.box.ForeColor = Color.FromArgb(23, 221, 23)
        self.box.Size = Size(180, 140)
        self.box.Location = Point(2, 57)
        self.box.Text = 'Options'

        self.box2 = GroupBox()
        self.box2.BackColor = Color.FromArgb(25, 25, 25)
        self.box2.ForeColor = Color.FromArgb(23, 221, 23)
        self.box2.Size = Size(180, 50)
        self.box2.Location = Point(02, 400)
        self.box2.Text = 'Chase Mobile Options'

        self.box3 = GroupBox()
        self.box3.BackColor = Color.FromArgb(25, 25, 25)
        self.box3.ForeColor = Color.FromArgb(23, 221, 23)
        self.box3.Size = Size(180, 155)
        self.box3.Location = Point(02, 244)
        self.box3.Text = 'Dress/Arm'

        self.box4 = GroupBox()
        self.box4.BackColor = Color.FromArgb(25, 25, 25)
        self.box4.ForeColor = Color.FromArgb(23, 221, 23)
        self.box4.Size = Size(180, 60)
        self.box4.Location = Point(02, 505)

        self.box5 = GroupBox()
        self.box5.BackColor = Color.FromArgb(25, 25, 25)
        self.box5.ForeColor = Color.FromArgb(23, 221, 23)
        self.box5.Size = Size(180, 40)
        self.box5.Location = Point(02, 200)
        self.box5.Text = 'Weapon Type'

        self.box6 = GroupBox()
        self.box6.BackColor = Color.FromArgb(25, 25, 25)
        self.box6.ForeColor = Color.FromArgb(23, 221, 23)
        self.box6.Size = Size(180, 55)
        self.box6.Location = Point(2, 2)
        self.box6.Text = Player.Name

        self.box7 = GroupBox()
        self.box7.BackColor = Color.FromArgb(25, 25, 25)
        self.box7.ForeColor = Color.FromArgb(23, 221, 23)
        self.box7.Size = Size(180, 55)
        self.box7.Location = Point(02, 450)
        self.box7.Text = 'Rail Options'

        self.cbA = CheckBox()
        self.cbA.Text = 'Conf/Evade'
        self.cbA.Checked = False
        self.cbA.BackColor = Color.FromArgb(25, 25, 25)
        self.cbA.Location = Point(10, 70)
        self.cbA.Size = Size(85, 20)

        hb = ProgressBar()
        hb.Minimum = 1
        hb.Maximum = 100
        hb.Step = 1
        hb.Value = 1
        hb.Location = Point(10, 20)
        hb.Width = 165
        hb.Height = 25
        hb.BackColor = Color.FromArgb(5, 255, 25)
        hb.ForeColor = Color.FromArgb(233, 221, 23)
        self.prog = hb

        self.cbB = CheckBox()
        self.cbB.Text = 'EoO'
        self.cbB.Checked = False
        self.cbB.BackColor = Color.FromArgb(25, 25, 25)
        self.cbB.Location = Point(95, 70)
        self.cbB.Size = Size(85, 20)

        self.cbC = CheckBox()
        self.cbC.Text = 'Band Heal'
        self.cbC.Checked = False
        self.cbC.BackColor = Color.FromArgb(25, 25, 25)
        self.cbC.Location = Point(10, 90)
        self.cbC.Size = Size(85, 20)

        self.cbD = CheckBox()
        self.cbD.Text = 'Cons Wep'
        self.cbD.Checked = False
        self.cbD.BackColor = Color.FromArgb(25, 25, 25)
        self.cbD.Location = Point(95, 90)
        self.cbD.Size = Size(85, 20)

        self.cbE = CheckBox()
        self.cbE.Text = 'Honor'
        self.cbE.Checked = False
        self.cbE.BackColor = Color.FromArgb(25, 25, 25)
        self.cbE.Location = Point(10, 110)
        self.cbE.Size = Size(85, 20)

        self.cbF = CheckBox()
        self.cbF.Text = 'Div Fury'
        self.cbF.Checked = False
        self.cbF.BackColor = Color.FromArgb(25, 25, 25)
        self.cbF.Location = Point(95, 110)
        self.cbF.Size = Size(85, 20)

        self.cbG = CheckBox()
        self.cbG.Text = 'Onslaught'
        self.cbG.Checked = False
        self.cbG.BackColor = Color.FromArgb(25, 25, 25)
        self.cbG.Location = Point(10, 130)
        self.cbG.Size = Size(85, 20)

        self.cbH = CheckBox()
        self.cbH.Text = 'Cntr Atk'
        self.cbH.Checked = False
        self.cbH.BackColor = Color.FromArgb(25, 25, 25)
        self.cbH.Location = Point(95, 130)
        self.cbH.Size = Size(85, 20)

        self.cbI = CheckBox()
        self.cbI.Text = 'OJ Petal'
        self.cbI.Checked = False
        self.cbI.BackColor = Color.FromArgb(25, 25, 25)
        self.cbI.Location = Point(10, 150)
        self.cbI.Size = Size(85, 20)

        self.cbJ = CheckBox()
        self.cbJ.Text = 'Insure'
        self.cbJ.Checked = False
        self.cbJ.BackColor = Color.FromArgb(25, 25, 25)
        self.cbJ.Location = Point(95, 150)
        self.cbJ.Size = Size(85, 20)

        self.cbK = CheckBox()
        self.cbK.Text = 'Apple'
        self.cbK.Checked = False
        self.cbK.BackColor = Color.FromArgb(25, 25, 25)
        self.cbK.Location = Point(10, 170)
        self.cbK.Size = Size(85, 20)

        self.cbL = CheckBox()
        self.cbL.Text = 'On/Off'
        self.cbL.Checked = False
        self.cbL.BackColor = Color.FromArgb(25, 25, 25)
        self.cbL.Location = Point(10, 412)
        self.cbL.Size = Size(60, 20)

        self.cbM = CheckBox()
        self.cbM.Text = 'On/Off'
        self.cbM.Checked = False
        self.cbM.BackColor = Color.FromArgb(25, 25, 25)
        self.cbM.Location = Point(10, 463)
        self.cbM.Size = Size(60, 20)

        self.cbN = CheckBox()
        self.cbN.Text = 'Bone Cutter'
        self.cbN.Checked = False
        self.cbN.BackColor = Color.FromArgb(25, 25, 25)
        self.cbN.Location = Point(95, 170)
        self.cbN.Size = Size(85, 20)

        self.rbD = RadioButton()
        self.rbD.Text = 'D Axe'
        self.rbD.Location = Point(25, 213)
        self.rbD.BackColor = Color.FromArgb(25, 25, 25)
        self.rbD.ForeColor = Color.FromArgb(231, 231, 231)
        self.rbD.Size = Size(65, 20)

        self.rbE = RadioButton()
        self.rbE.Text = 'B Staff'
        self.rbE.Location = Point(105, 213)
        self.rbE.BackColor = Color.FromArgb(25, 25, 25)
        self.rbE.ForeColor = Color.FromArgb(231, 231, 231)
        self.rbE.Size = Size(65, 20)

        self.btnA = Button()
        self.btnA.Text = 'Demon'
        self.btnA.BackColor = Color.FromArgb(50, 24, 25)
        self.btnA.Location = Point(10, 342)
        self.btnA.Size = Size(55, 25)
        self.btnA.FlatStyle = FlatStyle.Flat
        self.btnA.FlatAppearance.BorderSize = 1
        self.btnA.Click += self.btnDemonPressed

        self.btnB = Button()
        self.btnB.Text = 'Reptile'
        self.btnB.BackColor = Color.FromArgb(25, 50, 25)
        self.btnB.Location = Point(65, 342)
        self.btnB.Size = Size(55, 25)
        self.btnB.FlatStyle = FlatStyle.Flat
        self.btnB.FlatAppearance.BorderSize = 1
        self.btnB.Click += self.btnReptilePressed

        self.btnC = Button()
        self.btnC.Text = 'Undead'
        self.btnC.BackColor = Color.FromArgb(50, 25, 25)
        self.btnC.Location = Point(120, 342)
        self.btnC.Size = Size(55, 25)
        self.btnC.FlatStyle = FlatStyle.Flat
        self.btnC.FlatAppearance.BorderSize = 1
        self.btnC.Click += self.btnUndeadPressed

        self.btnD = Button()
        self.btnD.Text = 'Elemen'
        self.btnD.BackColor = Color.FromArgb(25, 50, 25)
        self.btnD.Location = Point(10, 317)
        self.btnD.Size = Size(55, 25)
        self.btnD.FlatStyle = FlatStyle.Flat
        self.btnD.FlatAppearance.BorderSize = 1
        self.btnD.Click += self.btnElemenPressed

        self.btnE = Button()
        self.btnE.Text = 'Arach'
        self.btnE.BackColor = Color.FromArgb(50, 25, 25)
        self.btnE.Location = Point(65, 317)
        self.btnE.Size = Size(55, 25)
        self.btnE.FlatStyle = FlatStyle.Flat
        self.btnE.FlatAppearance.BorderSize = 1
        self.btnE.Click += self.btnArachPressed

        self.btnF = Button()
        self.btnF.Text = 'Repond'
        self.btnF.BackColor = Color.FromArgb(25, 50, 25)
        self.btnF.Location = Point(120, 317)
        self.btnF.Size = Size(55, 25)
        self.btnF.FlatStyle = FlatStyle.Flat
        self.btnF.FlatAppearance.BorderSize = 1
        self.btnF.Click += self.btnRepondPressed

        self.btnG = Button()
        self.btnG.Text = 'Main Dress'
        self.btnG.BackColor = Color.FromArgb(25, 50, 25)
        self.btnG.Location = Point(10, 260)
        self.btnG.Size = Size(165, 25)
        self.btnG.FlatStyle = FlatStyle.Flat
        self.btnG.FlatAppearance.BorderSize = 1
        self.btnG.Click += self.btnDressPressed

        self.btnH = Button()
        self.btnH.Text = 'Luck Suit'
        self.btnH.BackColor = Color.FromArgb(50, 50, 10)
        self.btnH.Location = Point(10, 285)
        self.btnH.Size = Size(165, 25)
        self.btnH.FlatStyle = FlatStyle.Flat
        self.btnH.FlatAppearance.BorderSize = 1
        self.btnH.Click += self.btnLuckPressed

        self.btnI = Button()
        self.btnI.Text = 'Repair Check'
        self.btnI.BackColor = Color.FromArgb(10, 10, 60)
        self.btnI.Location = Point(10, 367)
        self.btnI.Size = Size(165, 25)
        self.btnI.FlatStyle = FlatStyle.Flat
        self.btnI.FlatAppearance.BorderSize = 1
        self.btnI.Click += self.btnRepairPressed

        self.btnJ = Button()
        self.btnJ.Text = 'Chase by MobID'
        self.btnJ.BackColor = Color.FromArgb(0, 0, 0)
        self.btnJ.Location = Point(75, 415)
        self.btnJ.Size = Size(100, 30)
        self.btnJ.FlatStyle = FlatStyle.Flat
        self.btnJ.FlatAppearance.BorderSize = 1
        self.btnJ.Click += self.btnMobIDPressed

        self.btnGet = Button()
        self.btnGet.Text = 'Stop'
        self.btnGet.BackColor = Color.FromArgb(100, 10, 10)
        self.btnGet.Location = Point(95, 520)
        self.btnGet.Size = Size(80, 35)
        self.btnGet.FlatStyle = FlatStyle.Flat
        self.btnGet.FlatAppearance.BorderSize = 1
        self.btnGet.Click += self.btnStopPressed

        self.startGet = Button()
        self.startGet.Text = 'Start'
        self.startGet.BackColor = Color.FromArgb(10, 100, 10)
        self.startGet.Location = Point(10, 520)
        self.startGet.Size = Size(80, 35)
        self.startGet.FlatStyle = FlatStyle.Flat
        self.startGet.FlatAppearance.BorderSize = 1
        self.startGet.Click += self.btnStartPressed

        self.button4 = Button()
        self.button4.Text = 'Open Recorder'
        self.button4.Width = 100
        self.button4.Height = 30
        self.button4.Location = Point(75, 465)
        self.button4.FlatStyle = FlatStyle.Flat
        self.button4.Click += self.info

        self.textbox2 = TextBox()
        self.textbox2.Text = "Rail_Name"
        self.textbox2.Location = Point(10, 480)
        self.textbox2.Width = 60

        self.textbox3 = TextBox()
        self.textbox3.Text = "Delay (ms)"
        self.textbox3.Location = Point(10, 427)
        self.textbox3.Width = 60

        self.textbox4 = TextBox()
        self.textbox4.Text = "20"
        self.textbox4.Location = Point(15, 370)
        self.textbox4.Width = 30

        self.Controls.Add(self.textbox2)
        self.Controls.Add(self.textbox3)
        self.Controls.Add(self.textbox4)
        self.Controls.Add(self.button4)
        self.Controls.Add(self.cbA)
        self.Controls.Add(self.cbB)
        self.Controls.Add(self.cbC)
        self.Controls.Add(self.cbD)
        self.Controls.Add(self.cbE)
        self.Controls.Add(self.cbF)
        self.Controls.Add(self.cbG)
        self.Controls.Add(self.cbH)
        self.Controls.Add(self.cbI)
        self.Controls.Add(self.cbJ)
        self.Controls.Add(self.cbK)
        self.Controls.Add(self.cbL)
        self.Controls.Add(self.cbM)
        self.Controls.Add(self.cbN)

        self.Controls.Add(self.btnA)
        self.Controls.Add(self.btnB)
        self.Controls.Add(self.btnC)
        self.Controls.Add(self.btnD)
        self.Controls.Add(self.btnE)
        self.Controls.Add(self.btnF)
        self.Controls.Add(self.btnG)
        self.Controls.Add(self.btnH)
        self.Controls.Add(self.btnI)
        self.Controls.Add(self.btnJ)
        self.Controls.Add(self.btnGet)
        self.Controls.Add(self.startGet)

        self.Controls.Add(self.rbD)
        self.Controls.Add(self.rbE)

        self.Controls.Add(hb)

        self.Controls.Add(self.box)
        self.Controls.Add(self.box2)
        self.Controls.Add(self.box3)
        self.Controls.Add(self.box4)
        self.Controls.Add(self.box5)
        self.Controls.Add(self.box6)
        self.Controls.Add(self.box7)

        Misc.Pause(500)
        self.Shown += self.refresh