Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Feb 26 08:35
    @freakboy3742 banned @HBanado_twitter
Paul m. p. P.
@pmp-p
i mean there is not a ready made tool to do that specific except perhaps python-for-android ( but i'm not sure )
FunMod
@FunMod
Well, thanks
J3R
@J3R
hello, is there anything special to do (or is it even possible) to input characters in Toga's webview forms? For instance, when I try to fill in the Beeware "Keep in Touch" form (https://beeware.org/community/keep-informed/) which can be accessed using the example code (https://github.com/beeware/toga/blob/master/examples/webview/webview/app.py), no character is captured and displayed. I'm on MacOS. Thanks in advance!
Asheesh Laroia
@paulproteus
@freakboy3742 Here's a pull request to enable fake subclassing for Views, for Canvas: beeware/briefcase-android-gradle-template#27
Russell Keith-Magee
@freakboy3742
@J3R What version of Toga are you using? I remember that coming up in the past; the issue was that the keyboard handler was hijacking keystrokes, and wasn't passing them to the view for "normal" handling. However, I thought we'd fixed that...
3 replies
Tom
@t-arn

Hello everybody, I'm trying to implement setting the background color of a Button on Android. For this, I'm trying the following code:

    def set_background_color(self, value):
        if value:
            PorterDuff = JavaClass("android/graphics/PorterDuff")
            bg = self.native.getBackground()
            bg.setColorFilter(native_color(value), PorterDuff.Mode.MULTIPLY)

But I get following error message:

2021-03-23 06:51:55.991 16930-16930/org.beeware.button E/Python: AttributeError: Java class 'b'android/graphics/PorterDuff'' has no attribute 'Mode'

Mode is a enum - why do I get this error message?
I also tried to pass the integer value instead of MULTIPLY, but then I get the error that setColor(int, int) does not exist

Tom
@t-arn

OK, got it: I need to specify it like this:

PorterDuff__Mode = JavaClass("android/graphics/PorterDuff$Mode")
bg.setColorFilter(native_color(value), PorterDuff__Mode.MULTIPLY)

Now, it works :-)

Tom
@t-arn
I thought that the $ notation in JavaClass only works for sub-classes. But it also seems to work for enums
meow464
@meow464
@freakboy3742 Do you happen to have any suggestion on the best way of doing pull to refresh on gtk.listbox?
meow464
@meow464
On that same topic, refresh is not always the appropriate "icon/action", sometimes "load more" might be more appropriate.
meow464
@meow464
@freakboy3742 in case you want to take a look at how things are going: https://github.com/ceo-of-programming/toga/tree/detailedlist_gtk_listbox
Russell Keith-Magee
@freakboy3742
@t-arn The $ notation isn't sub classes - it's inner classes; that is, classes defined inside the scope of another class. Enums are commonly defined this way (although you can define enums as standalone classes in their own .java/.class files)
@ceo-of-programming No particular suggestions; I know enough GTK to be dangerous, but I wouldn't claim to be an expert. The general approach I would take would be to find a pure C version of an app/widget that implements the behavior, and try to crib off that implementation to see what is needed.
Russell Keith-Magee
@freakboy3742
Hi folks! After many years of using Gitter, we've made a decision to move the chat community to Discord. To join the new Discord server, visit https://beeware.org/bee/chat/
nabin
@nabin44304355_twitter
image.png
image.png
please help to get rid of this error
Russell Keith-Magee
@freakboy3742
@nabin44304355_twitter FYI: We've moved our chat community to Discord. To join the discord server, visit https://beeware.org/bee/chat/
nabin
@nabin44304355_twitter
ok thanks
nabin
@nabin44304355_twitter
@freakboy3742 hey you
Russell Keith-Magee
@freakboy3742
@nabin44304355_twitter FYI - that’s a particularly rude way to try and get someone’s attention.
And, as I’ve already told you - we’ve moved the chat conversation to Discord. I won’t be answering questions here.
This message was deleted
Russell Keith-Magee
@freakboy3742:matrix.org
[m]
Testing the matrix bridge
callahad
@callahad:matrix.org
[m]
Hooray! It works!
santiago casaliglia
@santihcg_twitter
Hi @freakboy3742. Great job, I love Beeware! Please, I have a Python script with requests.post and the Android app ignores it completely. Simply it skip it, without any error. How can I solve this? I tried also with httpx with same results. The dev works perfectly
Russell Keith-Magee
@freakboy3742
@santihcg_twitter Hi - we’ve moved this community to Discord; if you post your question there, we may be able to help.
Alexander Görtz
@nylocx
Hi is this rhe right place to ask a briefcase question?
i need an appimage that works on centos 7 (glibc 2.17) i figured out that i habe to build my own support libraries from the docs, but vould not find any information on how to do it.
Alexander Görtz
@nylocx
Oh i see moved to discord.
Jakub Strzelecki
@kubast2
$ briefcase create android
Briefcase configuration error: configuration file not found
Where should I run this command?
where should the configuration file show up in?
I got java, I got android sdk+ndk they are marked in the enivormental variables btw
Jakub Strzelecki
@kubast2
https://docs.beeware.org/en/latest/tutorial/tutorial-5/android.html this tutorial is clearly lacking something
dgelessus
@dgelessus
@kubast2 Hi, we've moved our chat to Discord, so this Gitter channel is no longer active. You can join the Discord chat using this link - someone can probably help you there: https://beeware.org/bee/chat/
Damascene
@uak_gitlab
image.png
unable to join discord channel. I wonder why using Discord as it's closed source and no way to move out of it or save history.
also no way to report spammers
Russell Keith-Magee
@freakboy3742
@uak_gitlab Thanks for that... I'm not sure why you've been linked to guard_bees - that's the admin channel.
As for reporting spammers - Discord provides wildly better moderation tools than Gitter does.
As for why a closed source tool? Because being Open Source doesn't make the tool inherently better. All things being equal, sure - I'd rather a FLOSS tool. However, things aren't equal. The UX of discord is wildly better than Gitter.
Russell Keith-Magee
@freakboy3742
Looks like something got confused in our Discord config: Try this invite code https://discord.gg/AjYYm8cyQM
Cybear Tron
@cybeartron:matrix.org
[m]
Hwlo
I am interested in Beeware honestly
What is it actually
I saw about toga in daily.dev and was interested
Russell Keith-Magee
@freakboy3742
@cybeartron:matrix.org Details on the website: beeware.org - however, the rest of the chat has moved to Discord https://discord.gg/AjYYm8cyQM
1 reply
Jacob-Heff
@Jacob-Heff

[helloworld] Generating application template...
Using app template: https://github.com/beeware/briefcase-windows-msi-template.git, branch 3.9
Template does not support 3.9

Recieved this error when running briefcase create and briefcase run, how to fix?

Russell Keith-Magee
@freakboy3742
@Jacob-Heff We've moved chat to discord https://discord.gg/AjYYm8cyQM
But the tl;dr - We don't support 3.9 on Windows yet, because one of our key libraries (python.net) doesn't support python 3.9 yet.