• rb

    no it’s more of a cut out text that reveals an underlying image/bg effect

    posted in Pythonista read more
  • rb

    Hi there
    Simple question but I can’t seem to get this working.
    When a ui.SegmentedControl is selected the background goes black and the text transparent. How can I replicate this transparent text on a solid black background with a ui.label text?
    Tried setting text_color (0,0,0,0) and background_color (0,0,0,1) to no avail.

    posted in Pythonista read more
  • rb

    Thanks works perfectly:)

    posted in Pythonista read more
  • rb

    Hi how can I set a custom font for ui.SegmentedControl instance?
    Objective C hackery?

    Cheers!
    Rich

    posted in Pythonista read more
  • rb

    Yeah the real ants is what I was looking for obvs!

    Thanks guys :)
    I think I just really needed to understand that it’s not
    .set_line_dash(sequence [,phase])
    but more like:
    .set_line_dash([10,15,10,15] ,phase)

    Which is what was confusing me..
    Duh

    posted in Pythonista read more
  • rb

    Hi
    How would I go about making a marching ants/continuously shifting dashed line effect between 2 fixed points using ui.animate anyone?

    posted in Pythonista read more
  • rb

    I’m actually using the reload method and it seems fine - I guess it’s just really inefficient is that what your saying @JonB ?
    Thanks for help so far everyone.

    posted in Pythonista read more
  • rb

    Hiya
    I’m trying to fill a tableView with rows one after the other with a slight delay between each cell appearing.

    This is how I’m trying to do it - but they all still appear in one go:

    def tableview_cell_for_row(tableview, section, row):
        cell =ui.TableViewCell("subtitle")
        data = tableview.data_source.items[row]
        cell.bg_color = (0,1,0,0.1)
        cell.text_label.font= ('system',(17*Hmult))
        cell.text_label.text_color = (0,1,0,0.0)
        cell.text_label.text = str(data)
        selected_cell = ui.View()
        selected_cell.bg_color = (0,1,0,0.2)
        selected_cell.text_color = (0,1,0,1.0)
        cell.selected_background_view = selected_cell
        def anim():
            if len(tableview.data_source.items) != row:
                print(row)
                cell.text_label.text_color = (0,1,0,0.5)
                ui.delay(anim,0.2)
        ui.delay(anim,0.2)
        return cell
    

    posted in Pythonista read more
  • rb

    Thankyou for that got it working at last :). I need to set each cells bg rather than the table - got it.

    posted in Pythonista read more
  • rb

    Hi what is the secret to getting a table view from ui designer to overlay onto a background such that only the text is visible and the cells have no background?
    I have tried setting bg_color of data source and/or table view to none but it’s not happening.ie each cell is always white.
    I can remove white separator lines using tableView.separator_color=(1,0,0,0).
    Why won’t the same work for .bg_color and/or .background_color (and what is the difference between those two anyhow?)
    Thanks in advance for any help :)
    What am I missing here?

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!