• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

int-brain-lab / iblrig / 11177497220

04 Oct 2024 09:27AM UTC coverage: 48.017% (+1.2%) from 46.79%
11177497220

Pull #724

github

76a728
web-flow
Merge d585cdc2b into 646ec9386
Pull Request #724: 8.24.3

5 of 6 new or added lines in 4 files covered. (83.33%)

1030 existing lines in 22 files now uncovered.

4188 of 8722 relevant lines covered (48.02%)

0.96 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

25.0
/iblrig/graphic.py
1
"""Popup and string input prompts"""
2

3
import tkinter as tk
2✔
4
from tkinter import simpledialog
2✔
5

6

7
def numinput(title, prompt, default=None, minval=None, maxval=None, nullable=False, askint=False):
2✔
UNCOV
8
    root = tk.Tk()
×
UNCOV
9
    root.withdraw()
×
UNCOV
10
    ask = simpledialog.askinteger if askint else simpledialog.askfloat
×
UNCOV
11
    ans = ask(title, prompt, initialvalue=default, minvalue=minval, maxvalue=maxval)
×
UNCOV
12
    if ans == 0:
×
UNCOV
13
        return ans
×
UNCOV
14
    elif not ans and not nullable:
×
15
        return numinput(title, prompt, default=default, minval=minval, maxval=maxval, nullable=nullable, askint=askint)
×
16
    return ans
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc