Esempio n. 1
0
            def correct_and_sell():
                self.transcribe_area.error_count = ut.transcript_div(
                    self.transcribe_area, (f"Errors Found: "
                                           f"{self.book['Errors']}"))
                self.transcribe_area.current_price = ut.transcript_div(
                    self.transcribe_area,
                    f"Current Top Price: {current_price}")
                if self.book['Errors'] > 0:
                    if self.player['Stamina'] > 0:
                        self.transcribe_area.correct = ut.create_button(
                            self.transcribe_area, 'Correct Transcript',
                            correct_transcript)
                        c = self.transcribe_area.correct
                        c.book = self.book
                        c.player = self.player
                        c.header = self.header
                else:
                    self.transcribe_area.sell = ut.create_button(
                        self.transcribe_area, 'Find Buyer (1 hour)',
                        find_buyer)
                    self.transcribe_area.price = ut.create_button(
                        self.transcribe_area, 'Sell Price', sell_work)
                    s = self.transcribe_area.sell
                    s.book = self.book
                    s.player = self.player
                    s.header = self.header
                    s.transcribe_area = self.transcribe_area
                    s.price = self.transcribe_area.price

                    p = self.transcribe_area.price
                    p.book = self.book
                    p.desc = self.desc
                    p.player = self.player
                    p.header = self.header
                pass
Esempio n. 2
0
        def basic_info():
            self.transcribe_area.title_line = ut.transcript_div(
                self.transcribe_area, f'Title: {self.book["Title"]}')

            self.transcribe_area.word_count = ut.transcript_div(
                self.transcribe_area,
                f'Number of Words: {self.book["Word Count"]}')

            self.transcribe_area.words_transcribed = ut.transcript_div(
                self.transcribe_area,
                f'Words Transcribed: {self.book["Words Transcribed"]}')
            pass
Esempio n. 3
0
        def allocate_supply_info():
            self.transcribe_area.supplies_needed = ut.transcript_div(
                self.transcribe_area, ('Supplies needed: '
                                       f'{supply_list()}'))

            self.transcribe_area.can_allocate = ut.transcript_div(
                self.transcribe_area, f'{can_allocate()}')

            if self.enough_supplies is True:
                self.transcribe_area.allocate_supplies = ut.create_button(
                    self.transcribe_area, "Allocate Supplies",
                    allocate_supplies)
                a = self.transcribe_area.allocate_supplies
                a.player = self.player
                a.sheets = self.sheets
                a.ink = self.ink
                a.desk = self.desk
                a.book = self.book
            pass
Esempio n. 4
0
        def transcript_progress():
            self.transcribe_area.words_transcribed = ut.transcript_div(
                self.transcribe_area, ('Estimated Time to Complete: '
                                       f'{time_estimate()} minutes'))
            self.transcribe_area.time_picker = ut.transcript_div(
                self.transcribe_area, 'Write for how many minutes?  ')
            self.transcribe_area.time_picker.input = ut.input_number(
                self.transcribe_area.time_picker, self.time_estimate,
                validate_input)

            self.transcribe_area.time_picker.transcribe = ut.create_button(
                self.transcribe_area,
                f'Write for {self.time_estimate} minutes', write_transcript)
            t = self.transcribe_area.time_picker.transcribe
            t.time = self.time_estimate
            t.player = self.player
            t.header = self.header
            t.desk = self.desk
            t.book = self.book
            t.estimate = self.time_estimate
            self.transcribe_area.time_picker.input.transcribe = t
            pass
Esempio n. 5
0
    def transcription_info():
        def basic_info():
            self.transcribe_area.title_line = ut.transcript_div(
                self.transcribe_area, f'Title: {self.book["Title"]}')

            self.transcribe_area.word_count = ut.transcript_div(
                self.transcribe_area,
                f'Number of Words: {self.book["Word Count"]}')

            self.transcribe_area.words_transcribed = ut.transcript_div(
                self.transcribe_area,
                f'Words Transcribed: {self.book["Words Transcribed"]}')
            pass

        def allocate_supply_info():
            self.transcribe_area.supplies_needed = ut.transcript_div(
                self.transcribe_area, ('Supplies needed: '
                                       f'{supply_list()}'))

            self.transcribe_area.can_allocate = ut.transcript_div(
                self.transcribe_area, f'{can_allocate()}')

            if self.enough_supplies is True:
                self.transcribe_area.allocate_supplies = ut.create_button(
                    self.transcribe_area, "Allocate Supplies",
                    allocate_supplies)
                a = self.transcribe_area.allocate_supplies
                a.player = self.player
                a.sheets = self.sheets
                a.ink = self.ink
                a.desk = self.desk
                a.book = self.book
            pass

        def transcript_progress():
            self.transcribe_area.words_transcribed = ut.transcript_div(
                self.transcribe_area, ('Estimated Time to Complete: '
                                       f'{time_estimate()} minutes'))
            self.transcribe_area.time_picker = ut.transcript_div(
                self.transcribe_area, 'Write for how many minutes?  ')
            self.transcribe_area.time_picker.input = ut.input_number(
                self.transcribe_area.time_picker, self.time_estimate,
                validate_input)

            self.transcribe_area.time_picker.transcribe = ut.create_button(
                self.transcribe_area,
                f'Write for {self.time_estimate} minutes', write_transcript)
            t = self.transcribe_area.time_picker.transcribe
            t.time = self.time_estimate
            t.player = self.player
            t.header = self.header
            t.desk = self.desk
            t.book = self.book
            t.estimate = self.time_estimate
            self.transcribe_area.time_picker.input.transcribe = t
            pass

        def proofread_info():
            def correct_and_sell():
                self.transcribe_area.error_count = ut.transcript_div(
                    self.transcribe_area, (f"Errors Found: "
                                           f"{self.book['Errors']}"))
                self.transcribe_area.current_price = ut.transcript_div(
                    self.transcribe_area,
                    f"Current Top Price: {current_price}")
                if self.book['Errors'] > 0:
                    if self.player['Stamina'] > 0:
                        self.transcribe_area.correct = ut.create_button(
                            self.transcribe_area, 'Correct Transcript',
                            correct_transcript)
                        c = self.transcribe_area.correct
                        c.book = self.book
                        c.player = self.player
                        c.header = self.header
                else:
                    self.transcribe_area.sell = ut.create_button(
                        self.transcribe_area, 'Find Buyer (1 hour)',
                        find_buyer)
                    self.transcribe_area.price = ut.create_button(
                        self.transcribe_area, 'Sell Price', sell_work)
                    s = self.transcribe_area.sell
                    s.book = self.book
                    s.player = self.player
                    s.header = self.header
                    s.transcribe_area = self.transcribe_area
                    s.price = self.transcribe_area.price

                    p = self.transcribe_area.price
                    p.book = self.book
                    p.desc = self.desc
                    p.player = self.player
                    p.header = self.header
                pass

            self.transcribe_area.completed_transcript = ut.transcript_div(
                self.transcribe_area, "Transcription Complete")
            if self.book['Is Proofread']:
                correct_and_sell()
            else:
                self.transcribe_area.proofread = ut.create_button(
                    self.transcribe_area, 'Proofread Transcript',
                    proofread_transcript)
                self.transcribe_area.proofread.book = self.book
                self.transcribe_area.proofread.player = self.player
                self.transcribe_area.proofread.header = self.header
            pass

        self.transcribe_area.delete()
        if self.player['Fatigue'] > 10:
            self.transcribe_area.too_tired = ut.transcript_div(
                self.transcribe_area, "You are too tired to do any writing!!")
            return
        basic_info()

        if self.book['Has Supplies'] is False:
            allocate_supply_info()
        else:
            if self.book['Transcription Complete'] is False:
                transcript_progress()
            else:
                proofread_info()