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

int-brain-lab / iblrig / 11407201950

18 Oct 2024 04:12PM UTC coverage: 47.898% (+1.1%) from 46.79%
11407201950

Pull #730

github

86ab26
web-flow
Merge 9801a3e94 into 0f4a57326
Pull Request #730: 8.24.4

47 of 68 new or added lines in 8 files covered. (69.12%)

1013 existing lines in 22 files now uncovered.

4170 of 8706 relevant lines covered (47.9%)

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