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

int-brain-lab / iblrig / 10992769815

23 Sep 2024 10:50AM UTC coverage: 47.799% (+1.0%) from 46.79%
10992769815

Pull #716

github

60cd00
web-flow
Merge 73b6a53cb into a946a6ff9
Pull Request #716: 8.24.1

22 of 49 new or added lines in 9 files covered. (44.9%)

1015 existing lines in 22 files now uncovered.

4191 of 8768 relevant lines covered (47.8%)

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